From 7dcb4483fc6c64a652838b300a7dfe2e3dd7b1ab Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 8 Sep 2015 15:29:13 +0100 Subject: [PATCH] startService can be called more than once. Signed-off-by: Daira Hopwood --- src/allmydata/frontends/magic_folder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 2b2b9ffd..b748d515 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -64,6 +64,10 @@ class MagicFolder(service.MultiService): self.downloader = Downloader(client, local_path_u, db, collective_dircap) def startService(self): + # TODO: why is this being called more than once? + if self.running: + return defer.succeed(None) + #print "%r.startService" % (self,) service.MultiService.startService(self) return self.uploader.start_monitoring() -- 2.45.2