mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
[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:
parent
e05941cec2
commit
1388232e38
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user