Skip to content

Commit

Permalink
Fix: Upgrading from unsupported version on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Apr 22, 2015
1 parent 6121914 commit bba6b99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions syncthing_gtk/daemonprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ def _cb_check_alive(self, *a):
Repeatedly check if process is still alive.
Called only on windows
"""
if self._proc == None:
# Never started or killed really fast
self.emit('exit', 1)
self._cancel.cancel()
if IS_WINDOWS: self._stdout.close()
return False
self._proc.poll()
if self._proc.returncode is None:
# Repeat until finished or canceled
Expand Down

0 comments on commit bba6b99

Please sign in to comment.