Commit 549f335f authored by Denis Bilenko's avatar Denis Bilenko

hub: add a comment

parent cc0e965f
......@@ -182,6 +182,7 @@ class Hub(greenlet):
sys.stderr.write('Restarting gevent.core.dispatch() after an error [%s]: %s\n' % (loop_count, ex))
continue
raise DispatchExit(result)
# this function must never return, as it will cause switch() in MAIN to return an unexpected value
finally:
if self.keyboard_interrupt_signal is not None:
self.keyboard_interrupt_signal.cancel()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment