a series of stupid fixes

This commit is contained in:
roberto@oneiric64
2012-02-05 11:56:50 +01:00
parent a51877cd1d
commit f4cb3c67c1
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -519,6 +519,7 @@ void uwsgi_after_request_wsgi(struct wsgi_request *wsgi_req) {
if (uwsgi.workers[uwsgi.mywid].harakiri > 0)
set_harakiri(0);
}
UWSGI_GET_GIL
PyObject *arh = python_call(up.after_req_hook, up.after_req_hook_args, 0, NULL);
if (!arh) {
PyErr_Print();
@@ -527,6 +528,7 @@ void uwsgi_after_request_wsgi(struct wsgi_request *wsgi_req) {
Py_DECREF(arh);
}
PyErr_Clear();
UWSGI_RELEASE_GIL
}
if (uwsgi.shared->options[UWSGI_OPTION_LOGGING] || wsgi_req->log_this) {