Fix gevent2 worker shutdown.

This commit is contained in:
Paul Davis 2010-06-10 16:38:45 -04:00
parent 764d81b742
commit 645938f2b9

View File

@ -76,11 +76,11 @@ class GEvent2Worker(Worker):
gevent.kill(acceptor)
break
gevent.sleep(0.1)
pool.join(timeout=self.timeout)
self.pool.join(timeout=self.timeout)
except KeyboardInterrupt:
pass