[Twisted-Python] Problem exiting script that calls a func returning a called deferred

Terry Jones terry at jon.es
Fri Apr 25 04:04:43 MDT 2008


Hi Amaury

> did you try something like:
> 
>        def stop(x):
>            reactor.callLater(0, reactor.stop)
> 
> This ensures that the reactor is started before you tell it to stop.

That's perfect, thanks.

Terry




More information about the Twisted-Python mailing list