fixed mule management

This commit is contained in:
Roberto De Ioris
2013-01-16 16:58:30 +01:00
parent 419875e6cf
commit bbf35be595
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ void uwsgi_mule(int id) {
if (uwsgi.p[i]->mule) {
if (uwsgi.p[i]->mule(uwsgi.mules[id - 1].patch) == 1) {
// never here
break;
end_me(1);
}
}
}
+1 -3
View File
@@ -1773,9 +1773,7 @@ int uwsgi_python_mule(char *opt) {
if (uwsgi_endswith(opt, ".py")) {
UWSGI_GET_GIL;
if (uwsgi_pyimport_by_filename("__main__", opt) == NULL) {
return 0;
}
uwsgi_pyimport_by_filename("__main__", opt);
UWSGI_RELEASE_GIL;
return 1;
}