[Twisted-Python] Calling reactor.run() / reactor.stop() twice

Justin Warren daedalus at eigenmagic.com
Tue Nov 13 17:10:16 EST 2007

On Tue, 2007-11-13 at 15:43 -0600, John Dawson wrote:
> Hi,
> The following Twisted code hangs, since the second call to
> reactor.stop() doesn't seem to really stop the reactor.  Is this a bug
> in Twisted, or is it impermissible to run/stop a reactor more than
> once?

The reactor is not restartable. Attempting to restart the reactor will
result in unpredictable behaviour.

Why do you want to do this?

Justin Warren <daedalus at eigenmagic.com>

More information about the Twisted-Python mailing list