forked from M-Labs/artiq
1
0
Fork 0

sync_struct: handle TimeoutError as subscriber disconnection. Closes #1215

This commit is contained in:
Sebastien Bourdeauducq 2018-12-13 06:58:54 +08:00
parent b1ea02ddf0
commit 371dda4a16
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,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, ConnectionAbortedError, BrokenPipeError): except (ConnectionResetError, ConnectionAbortedError, BrokenPipeError, TimeoutError):
# subscribers disconnecting are a normal occurrence # subscribers disconnecting are a normal occurrence
pass pass
finally: finally: