Skip to content

Commit

Permalink
Fix: Wait 5s before restarting lost daemon on Windows; Should prevent…
Browse files Browse the repository at this point in the history
… bug when system is shutting down. Ref #83
  • Loading branch information
kozec committed Feb 12, 2015
1 parent a112528 commit d97a4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncthing_gtk/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def cb_syncthing_disconnected(self, daemon, reason, message):
# Restart daemon process if connection is lost on Windows
self.process.kill()
self.process = None
self.start_daemon()
GLib.timeout_add_seconds(5, self.start_daemon)
self.set_status(False)
self.restart()

Expand Down

0 comments on commit d97a4e1

Please sign in to comment.