From: Daira Hopwood Date: Tue, 8 Sep 2015 14:29:13 +0000 (+0100) Subject: startService can be called more than once. X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html/index.php?a=commitdiff_plain;h=cf4ff226147319a01803bc928896f0abc8ce9c6d;p=tahoe-lafs%2Ftahoe-lafs.git startService can be called more than once. Signed-off-by: Daira Hopwood --- 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()