Commit 4dc001f4 authored by David Wilson's avatar David Wilson

parent: fire disconnect upon receiving DEL_ROUTE for context

This lets context.shutdown(wait=True) succeed in the master or any
parent.
parent 862ec211
......@@ -619,6 +619,9 @@ class RouteMonitor(object):
stream.routes.discard(target_id)
self.router.del_route(target_id)
self.propagate(mitogen.core.DEL_ROUTE, target_id)
context = self.router.context_by_id(target_id, create=False)
if context:
mitogen.core.fire(context, 'disconnect')
class Router(mitogen.core.Router):
......
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