From 91f74a04acbc0ebeae939132bfdef0b6b3817e97 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 21 Nov 2019 14:27:34 +0000 Subject: [PATCH] issue #667: fix inverted test for Waker write() failure. --- mitogen/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index d8c57ba7..4dd44925 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -2801,7 +2801,7 @@ class Waker(Protocol): self.stream.transmit_side.write(b(' ')) except OSError: e = sys.exc_info()[1] - if e.args[0] in (errno.EBADF, errno.EWOULDBLOCK): + if e.args[0] not in (errno.EBADF, errno.EWOULDBLOCK): raise broker_shutdown_msg = (