diff --git a/core/mule.c b/core/mule.c index f4d4f48b..12a6fda7 100644 --- a/core/mule.c +++ b/core/mule.c @@ -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); } } } diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index 9f37bd0f..68df9d9b 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -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; }