[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,21 +114,10 @@ class GeventWorker(AsyncWorker):
server.start() server.start()
servers.append(server) servers.append(server)
try:
while self.alive: while self.alive:
self.notify() self.notify()
gevent.sleep(1.0) gevent.sleep(1.0)
except KeyboardInterrupt:
pass
except:
for server in servers:
try:
server.stop()
except:
pass
raise
try: try:
# Stop accepting requests # Stop accepting requests
for server in servers: for server in servers: