From 71d2e3a69fd889d467840f7416854b9fc68255d0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 20 Oct 2015 00:35:02 +0800 Subject: [PATCH] protocols/sync_struct: disconnection can also cause BrokenPipeError --- 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 e2c1021ad..e7100701d 100644 --- a/artiq/protocols/sync_struct.py +++ b/artiq/protocols/sync_struct.py @@ -236,7 +236,7 @@ class Publisher(AsyncioServer): await writer.drain() finally: self._recipients[notifier_name].remove(queue) - except ConnectionResetError: + except (ConnectionResetError, BrokenPipeError): # subscribers disconnecting are a normal occurence pass finally: