fix a bug with gevent monkeypatch

This commit is contained in:
tzickel
2018-11-21 18:34:32 +02:00
parent f2061875e1
commit 16db6eddd7
2 changed files with 2 additions and 1 deletions

1
changelog/378.bugfix.rst Normal file
View File

@@ -0,0 +1 @@
Fix support for gevent monkeypatching

View File

@@ -268,7 +268,7 @@ class WorkerController(object):
if not self._down:
try:
self.sendcommand("shutdown")
except IOError:
except (IOError, OSError):
pass
self._shutdown_sent = True