core: add missing unlock in wsgi_req_accept

Reported by Coverity as CID #970989.
This commit is contained in:
Riccardo Magliocchetti
2013-01-26 19:29:46 +01:00
parent 386fac2421
commit cbc06f92d0
+3 -1
View File
@@ -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