parent: don't send messages on streams that no longer exist; closes #480

issue510
David Wilson 6 years ago
parent c0d1ac291a
commit 5bd6bd06d1

@ -1677,6 +1677,10 @@ class RouteMonitor(object):
:param str name:
Context name or :data:`None`.
"""
if not stream:
# We may not have a stream during shutdown.
return
data = str(target_id)
if name:
data = '%s:%s' % (target_id, name)

Loading…
Cancel
Save