Actually abort the main loop on sigint.
This commit is contained in:
@@ -90,6 +90,7 @@ class Hub(hub.BaseHub):
|
|||||||
# mechanism swallows exceptions raised here, so we have to raise in
|
# mechanism swallows exceptions raised here, so we have to raise in
|
||||||
# the 'main' greenlet (in wait()) to kill the program
|
# the 'main' greenlet (in wait()) to kill the program
|
||||||
self.interrupted = True
|
self.interrupted = True
|
||||||
|
event.abort()
|
||||||
|
|
||||||
def wait(self, seconds=None):
|
def wait(self, seconds=None):
|
||||||
# this timeout will cause us to return from the dispatch() call
|
# this timeout will cause us to return from the dispatch() call
|
||||||
|
Reference in New Issue
Block a user