forked from M-Labs/artiq
protocols/sync_struct: disconnection can also cause BrokenPipeError
This commit is contained in:
parent
da70f8b88c
commit
71d2e3a69f
|
@ -236,7 +236,7 @@ class Publisher(AsyncioServer):
|
||||||
await writer.drain()
|
await writer.drain()
|
||||||
finally:
|
finally:
|
||||||
self._recipients[notifier_name].remove(queue)
|
self._recipients[notifier_name].remove(queue)
|
||||||
except ConnectionResetError:
|
except (ConnectionResetError, BrokenPipeError):
|
||||||
# subscribers disconnecting are a normal occurence
|
# subscribers disconnecting are a normal occurence
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue