[Twisted-Python] Where does the client stop the reactor?

May 15, 2004
8:10 a.m.
I've noticed that when running an example client, the reactor shuts down cleanly, but it does not when running an example server. I've cludged some code for my testing that works fine for now, shutting down the reactor when there's no delayed calls: def stopWhenIdle(): count=len(reactor.getDelayedCalls()) if count: reactor.callLater(1,stopWhenIdle) else: reactor.stop() But where does the client normally stop the reactor? Thanks! Bill la Forge http://www.geocities.com/laforge49/ Yahoo! India Matrimony: Find your partner online.
7608
Age (days ago)
7608
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bill la Forge