]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
startService can be called more than once.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 8 Sep 2015 14:29:13 +0000 (15:29 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 8 Sep 2015 14:29:13 +0000 (15:29 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index 652c581ac5779b0244526e7555c8d8d26c61d063..28618ca34fa9de40ec1f5e81864cbc23e7ff4719 100644 (file)
@@ -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()