Author: dmeyer
Date: Tue Jan 29 14:50:15 2008
New Revision: 3014
Log:
handle step parameter
Modified:
trunk/base/src/notifier/pynotifier/nf_twisted.py
Modified: trunk/base/src/notifier/pynotifier/nf_twisted.py
==============================================================================
--- trunk/base/src/notifier/pynotifier/nf_twisted.py (original)
+++ trunk/base/src/notifier/pynotifier/nf_twisted.py Tue Jan 29 14:50:15 2008
@@ -213,17 +213,17 @@
dispatcher_remove = dispatch.dispatcher_remove
-def step(sleep = True, external = True, simulate = False):
+def step(sleep = True, external = True):
if reactor.running:
try:
- t2 = reactor.timeout()
- t = reactor.running and t2
+ t = sleep and reactor.running and reactor.timeout()
reactor.doIteration(t)
reactor.runUntilCurrent()
except:
log.error("problem running reactor - exiting")
raise SystemExit
- dispatch.dispatcher_run()
+ if external:
+ dispatch.dispatcher_run()
else:
log.info("reactor stopped - exiting")
raise SystemExit
-------------------------------------------------------------------------
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