[gevent] remove obsolete exception clauses in run

Since the changes from #1126, errors are not raised into the main
loop during a non-graceful shutdown. Therefore, these exception
clauses shouldn't be needed anymore.
This commit is contained in:
Randall Leeds 2016-03-13 14:36:42 -07:00
parent e05941cec2
commit 1388232e38

View File

@ -114,20 +114,9 @@ class GeventWorker(AsyncWorker):
server.start()
servers.append(server)
try:
while self.alive:
self.notify()
gevent.sleep(1.0)
except KeyboardInterrupt:
pass
except:
for server in servers:
try:
server.stop()
except:
pass
raise
while self.alive:
self.notify()
gevent.sleep(1.0)
try:
# Stop accepting requests