Skip to content

Commit

Permalink
Merge pull request benoitc#1218 from benoitc/gevent-remove-inner-exce…
Browse files Browse the repository at this point in the history
…ption-loop

[gevent] remove obsolete exception clauses in run
  • Loading branch information
tilgovi committed Mar 25, 2016
2 parents 1488f6d + c3bfe9d commit 9decebb
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions gunicorn/workers/ggevent.py
Expand Up @@ -114,20 +114,9 @@ def run(self):
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
Expand Down

0 comments on commit 9decebb

Please sign in to comment.