
Try this using Twisted 1.3.0, it work as expected # ----------------------------------------------- from twisted.internet import reactor def stopTest(passNo): reactor.callLater(1, reactor.stop) print 'starting reactor', passNo reactor.run() print 'stopped' for i in range(10): stopTest(i) # ----------------------------------------------- Try the same with current Twisted, it hung after 1st pass. Any idea, what is wrong? Thanks in advance, Paul

On Sat, Jun 18, 2005 at 10:21:13AM +0200, Paul Reznicek wrote:
from twisted.internet import reactor
def stopTest(passNo): reactor.callLater(1, reactor.stop) print 'starting reactor', passNo reactor.run() print 'stopped'
for i in range(10): stopTest(i) # -----------------------------------------------
Try the same with current Twisted, it hung after 1st pass.
Any idea, what is wrong? Thanks in advance,
As far as I can tell, you should run the reactor only once for the program lifetime. -- jk
participants (2)
-
en.karpachovīŧ ospaz.ru
-
Paul Reznicek