Merge remote-tracking branch 'origin/dmw'

* origin/dmw:
  issue #667: fix inverted test for Waker write() failure.
This commit is contained in:
David Wilson 2019-11-21 20:10:25 +00:00
commit c289b1699d
1 changed files with 1 additions and 1 deletions

View File

@ -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 = (