[svn-commits] mjordan: testsuite/asterisk/trunk r3953 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jul 22 16:15:08 CDT 2013


Author: mjordan
Date: Mon Jul 22 16:15:07 2013
New Revision: 3953

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3953
Log:
Move the actual reactor stop after the observer callbacks

Otherwise, the reactor stands a chance of exiting prior to all callbacks
being executed. That's problematic.

Modified:
    asterisk/trunk/lib/python/asterisk/TestCase.py

Modified: asterisk/trunk/lib/python/asterisk/TestCase.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/TestCase.py?view=diff&rev=3953&r1=3952&r2=3953
==============================================================================
--- asterisk/trunk/lib/python/asterisk/TestCase.py (original)
+++ asterisk/trunk/lib/python/asterisk/TestCase.py Mon Jul 22 16:15:07 2013
@@ -374,9 +374,9 @@
         if not self._stopping:
             self._stopping = True
             df = self.__stop_asterisk()
-            df.addCallback(__stop_reactor)
             for callback in self._stop_callbacks:
                 df.addCallback(callback)
+            df.addCallback(__stop_reactor)
 
     def __reactor_timeout(self):
         """




More information about the svn-commits mailing list