diff --git a/core/utils.c b/core/utils.c index 248efab5..b9c779b6 100644 --- a/core/utils.c +++ b/core/utils.c @@ -997,8 +997,10 @@ int wsgi_req_accept(int queue, struct wsgi_request *wsgi_req) { if (timeout > 0) { uwsgi_heartbeat(); // no need to continue if timed-out - if (ret == 0) + if (ret == 0) { + thunder_unlock; return -1; + } } #ifdef UWSGI_THREADING