Commit 9ae46002 authored by Denis Bilenko's avatar Denis Bilenko

resolver_ares: destroy() should be run in the loop, since it calls the...

resolver_ares: destroy() should be run in the loop, since it calls the outstanding callbacks directly
parent 4d4816a9
......@@ -25,7 +25,7 @@ class Resolver(object):
def _on_fork(self):
pid = os.getpid()
if pid != self.pid:
self.ares.destroy()
self.hub.loop.run_callback(self.ares.destroy)
self.ares = self.ares_class(self.hub.loop, **self.params)
self.pid = pid
......
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