Author: dmeyer
Date: Tue Feb 12 10:04:13 2008
New Revision: 3048

Log:
clean up signal callbacks

Modified:
   trunk/base/src/notifier/async.py

Modified: trunk/base/src/notifier/async.py
==============================================================================
--- trunk/base/src/notifier/async.py    (original)
+++ trunk/base/src/notifier/async.py    Tue Feb 12 10:04:13 2008
@@ -156,7 +156,8 @@
         # emit signal
         self.emit_when_handled(result)
         # cleanup
-        self._callbacks = []
+        self.disconnect_all()
+        self.exception.disconnect_all()
 
 
     def throw(self, type, value, tb):
@@ -169,8 +170,7 @@
         self._exception = type, value, tb
         self._unhandled_exception = False
         # Wake any threads waiting on us
-        if self._finished_event:
-            self._finished_event.set()
+        self._finished_event.set()
 
         if self.exception.emit_when_handled(type, value, tb) != False:
             # No handler returned False to block us from logging the exception.
@@ -179,7 +179,8 @@
             self._unhandled_exception = True
 
         # cleanup
-        self._callbacks = []
+        self.disconnect_all()
+        self.exception.disconnect_all()
 
 
     def _log_exception(self):

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to