Commits

Marcin Kasperski committed 0e4220d

Proper initialization order

  • Participants
  • Parent commits ccc99b0

Comments (0)

Files changed (1)

src/mekk/fics/twisted_util/defer_util.py

     """
 
     def __init__(self, deferredList):
+        self.managed_deferreds = deferredList[:]
         defer.DeferredList.__init__(
             self, deferredList,
             fireOnOneCallback=False, # of course
             fireOnOneErrback=False,  # all will be finished or cancelled and we wait for all of them
             consumeErrors=True,     # otherwise we get all those „Unhandled error in Deferred” errors for cancels etc.
             )
-        self.managed_deferreds = deferredList[:]
 
     def _cbDeferred(self, result, index, succeeded):
         if not succeeded: