Commit fbf53669 authored by Denis Bilenko's avatar Denis Bilenko

use Hub.handle_error in gevent.hub.Signal

parent 4a7f601a
......@@ -111,7 +111,7 @@ class Signal(object):
try:
handler(*args, **kwargs)
except:
self.hub.loop.run_callback(self.hub.parent.throw, *sys.exc_info())
self.hub.handle_error(None, *sys.exc_info())
if not self.watcher.active and self._unref == 1:
self.hub.loop.ref()
self._unref = 0
......
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