forked from M-Labs/artiq
1
0
Fork 0

protocol/sync_struct: Windows also raises ConnectionAbortedError on disconnection

This commit is contained in:
Sebastien Bourdeauducq 2016-01-27 21:12:22 +01:00
parent cfa4f791e8
commit a4fb8f3e53
1 changed files with 1 additions and 1 deletions

View File

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