[sync] improve check for already started

This commit is contained in:
Sam Schott 2020-04-13 19:15:42 +02:00
parent ebbb62da2f
commit baf488c51e

View File

@ -2766,8 +2766,8 @@ class MaestralMonitor:
def start(self):
"""Creates observer threads and starts syncing."""
if self.running.is_set():
# do nothing if already running
if self.running.is_set() or self.startup.is_set():
# do nothing if already started
return
self.running = Event() # create new event to let old threads shut down