Skip to content

Commit

Permalink
Merge pull request #659 from olt/fix/657
Browse files Browse the repository at this point in the history
merge duplicate EventletWorker.init_process method (fixes #657)
  • Loading branch information
benoitc committed Dec 11, 2013
2 parents 3601f20 + bbcb74f commit d0c30a1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gunicorn/workers/geventlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def patch(self):

def init_process(self):
hubs.use_hub()
self.patch()
super(EventletWorker, self).init_process()

def timeout_ctx(self):
Expand Down Expand Up @@ -87,8 +88,3 @@ def run(self):
if te != t:
raise
[a.kill() for a in acceptors]

def init_process(self):
# monkey patch here
self.patch()
super(EventletWorker, self).init_process()

0 comments on commit d0c30a1

Please sign in to comment.