Permalink
Browse files

Abort tahoe client restarts if already restarting

Fixes #149.
  • Loading branch information...
crwood committed Feb 8, 2019
1 parent bfd3752 commit 35f5d0adbe861721b9f77d22c8594094192902e4
Showing with 6 additions and 0 deletions.
  1. +6 −0 gridsync/tahoe.py
@@ -472,6 +472,12 @@ def start(self):
@inlineCallbacks
def restart(self):
log.debug("Restarting %s client...", self.name)
if self.state in (Tahoe.STOPPING, Tahoe.STARTING):
log.warning(
'Aborting restart operation; '
'the "%s" client is already (re)starting',
self.name)
return
# Temporarily disable desktop notifications for (dis)connect events
pref = get_preference('notifications', 'connection')
set_preference('notifications', 'connection', 'false')

0 comments on commit 35f5d0a

Please sign in to comment.