Author: tack
Date: Fri Apr 28 20:22:03 2006
New Revision: 1522
Modified:
trunk/base/src/notifier/__init__.py
Log:
Wrap idle signal emit in a function that ignores return value so notifier
doesn't remove the dispatcher.
Modified: trunk/base/src/notifier/__init__.py
==============================================================================
--- trunk/base/src/notifier/__init__.py (original)
+++ trunk/base/src/notifier/__init__.py Fri Apr 28 20:22:03 2006
@@ -58,11 +58,18 @@
# Set if currently in shutdown() (to prevent reentrancy)
shutting_down = False
+def _idle_signal_emit():
+ """
+ Wrapper for idle signal emit that ignores return value, otherwise notifier
+ may remove the dispatcher if the signal returns false.
+ """
+ signals["idle"].emit()
+
def _idle_signal_changed(signal, flag):
if flag == Signal.SIGNAL_CONNECTED and signal.count() == 1:
- notifier.dispatcher_add(signal.emit)
+ notifier.dispatcher_add(_idle_signal_emit)
elif flag == Signal.SIGNAL_DISCONNECTED and signal.count() == 0:
- notifier.dispatcher_remove(signal.emit)
+ notifier.dispatcher_remove(idle_signal_emit)
signals = {
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog