mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 13:41:28 +00:00
core: add missing unlock in wsgi_req_accept
Reported by Coverity as CID #970989.
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user