[CalendarServer-changes] [8576] CalendarServer/branches/users/glyph/parallel-upgrade_to_1/twext/ internet/spawnsvc.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 24 00:56:47 PST 2012


Revision: 8576
          http://trac.macosforge.org/projects/calendarserver/changeset/8576
Author:   glyph at apple.com
Date:     2012-01-24 00:56:47 -0800 (Tue, 24 Jan 2012)
Log Message:
-----------
Minor tweaks to make it restartable.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/parallel-upgrade_to_1/twext/internet/spawnsvc.py

Modified: CalendarServer/branches/users/glyph/parallel-upgrade_to_1/twext/internet/spawnsvc.py
===================================================================
--- CalendarServer/branches/users/glyph/parallel-upgrade_to_1/twext/internet/spawnsvc.py	2012-01-24 08:55:59 UTC (rev 8575)
+++ CalendarServer/branches/users/glyph/parallel-upgrade_to_1/twext/internet/spawnsvc.py	2012-01-24 08:56:47 UTC (rev 8576)
@@ -222,6 +222,7 @@
         super(SpawnerService, self).startService()
         for spawn in self.pendingSpawns:
             self.spawn(*spawn)
+        self.pendingSpawns = []
 
 
     def addBridge(self, bridge):
@@ -242,7 +243,7 @@
         if self._stopAllDeferred is not None:
             if len(self.bridges) == 0:
                 self._stopAllDeferred.callback(None)
-                self._stopAllDeferred = False
+                self._stopAllDeferred = None
 
 
     def stopService(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120124/fd45192a/attachment.html>


More information about the calendarserver-changes mailing list