Ticket #2066 enhancement closed fixed
Restarting a reactor should raise an exception
|Reported by:||TimothyFitz||Owned by:|
(diff, github, buildbot, log)
About once a month someone asks twisted-python why they have really strange behaviour, and happen to be restarting the reactor. Restarting the reactor is unsupported (currently, by all implementors, nothing prevents it from being implemented) so these all fail, but always fail poorly. A call to reactor.run() after reactor.stop() should raise an exception that clearly says "This reactor does not support restarting" or "Reactors do not support restarting".