mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 13:11:33 +00:00
uwsgi.is_locked raises an exception
This commit is contained in:
@@ -955,8 +955,7 @@ PyObject *py_uwsgi_is_locked(PyObject * self, PyObject * args) {
|
||||
|
||||
if (uwsgi_lock_check(uwsgi.user_lock[lock_num]) == 0) {
|
||||
UWSGI_GET_GIL
|
||||
Py_INCREF(Py_False);
|
||||
return Py_False;
|
||||
return PyErr_Format(PyExc_Exception, "already locked");
|
||||
}
|
||||
|
||||
UWSGI_GET_GIL
|
||||
|
||||
Reference in New Issue
Block a user