mirror of
https://github.com/samschott/maestral.git
synced 2024-10-06 10:28:07 +03:00
[sync] improve check for already started
This commit is contained in:
parent
ebbb62da2f
commit
baf488c51e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user