Skip to content

Commit

Permalink
Request network status when waking from sleep
Browse files Browse the repository at this point in the history
It seems that sometimes the signal does't arrive.

Signed-off-by: Ryan Zeigler <[email protected]>
  • Loading branch information
rzeigler committed Jan 11, 2025
1 parent d5da8b1 commit 5f6a77f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vorta/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def __init__(self):
def loginSuspendNotify(self, suspend: bool):
if not suspend:
logger.debug("Got login suspend/resume notification")
# Defensively refetch in case the network status didn't arrive
self._net_up = self.net_status.is_network_active()
self.reload_all_timers()

@QtCore.pyqtSlot(bool)
Expand Down

0 comments on commit 5f6a77f

Please sign in to comment.