Skip to content

Commit

Permalink
Merge branch 'v0.6' of https://github.com/kozec/syncthing-gui into v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Jan 27, 2015
2 parents 868bca5 + 1f0fe18 commit 26b58ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions syncthing_gtk/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def _syncthing_cb_shutdown(self, data, reason):
if self._connected:
self._connected = False
self._epoch += 1
self.emit("disconnected", reason, None)
self.emit("disconnected", reason, "")
self.cancel_all()

def _init_event_pooling(self, events):
Expand Down Expand Up @@ -881,7 +881,8 @@ def _syncthing_cb_version_known(self, version):
# Syncting version too low. Cancel everything and report error
self.cancel_all()
self._epoch += 1
self.emit("connection-error", Daemon.OLD_VERSION, "", None)
msg = "daemon is too old"
self.emit("connection-error", Daemon.OLD_VERSION, msg, Exception(msg))
return
if self._my_id != None:
device = self._get_device_data(self._my_id)
Expand Down

0 comments on commit 26b58ae

Please sign in to comment.