Skip to content
Snippets Groups Projects
Commit f351d34a authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis
Browse files

Add a "paused" property to syncer object

parent 8b496888
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,10 @@ class FileSyncer(object):
self.clients = {self.MASTER: master, self.SLAVE: slave}
self.decide_event = None
@property
def paused(self):
return (not self.decide_event.is_set()) if self.decide_event else True
def launch_daemons(self):
self.start_notifiers()
self.start_decide()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment