Actually abort the main loop on sigint.

This commit is contained in:
donovan
2008-05-19 15:27:31 -07:00
parent b263973043
commit 726879d73e

View File

@@ -90,6 +90,7 @@ class Hub(hub.BaseHub):
# mechanism swallows exceptions raised here, so we have to raise in
# the 'main' greenlet (in wait()) to kill the program
self.interrupted = True
event.abort()
def wait(self, seconds=None):
# this timeout will cause us to return from the dispatch() call