From a4fb8f3e53c41ffcba7b29bda53065e9543268a5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 27 Jan 2016 21:12:22 +0100 Subject: [PATCH] protocol/sync_struct: Windows also raises ConnectionAbortedError on disconnection --- artiq/protocols/sync_struct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/protocols/sync_struct.py b/artiq/protocols/sync_struct.py index c80555837..039fb2ac4 100644 --- a/artiq/protocols/sync_struct.py +++ b/artiq/protocols/sync_struct.py @@ -235,7 +235,7 @@ class Publisher(AsyncioServer): await writer.drain() finally: self._recipients[notifier_name].remove(queue) - except (ConnectionResetError, BrokenPipeError): + except (ConnectionResetError, ConnectionAbortedError, BrokenPipeError): # subscribers disconnecting are a normal occurence pass finally: