Merge pull request #378 from tzickel/geventfix
fix a bug with gevent monkeypatch
This commit is contained in:
1
changelog/378.bugfix.rst
Normal file
1
changelog/378.bugfix.rst
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Fix support for gevent monkeypatching
|
||||||
@@ -268,7 +268,7 @@ class WorkerController(object):
|
|||||||
if not self._down:
|
if not self._down:
|
||||||
try:
|
try:
|
||||||
self.sendcommand("shutdown")
|
self.sendcommand("shutdown")
|
||||||
except IOError:
|
except (IOError, OSError):
|
||||||
pass
|
pass
|
||||||
self._shutdown_sent = True
|
self._shutdown_sent = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user