diff --git a/gunicorn/workers/geventlet.py b/gunicorn/workers/geventlet.py index 24e561896..d3579adb7 100644 --- a/gunicorn/workers/geventlet.py +++ b/gunicorn/workers/geventlet.py @@ -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): @@ -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()