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