run the autoreloader even in non-apps mode when non-lazy

This commit is contained in:
Unbit
2013-10-04 06:22:06 +02:00
parent a41e6e2c61
commit 10377f02a3
+4 -2
View File
@@ -1367,8 +1367,10 @@ void *uwsgi_python_autoreloader_thread(void *foobar) {
UWSGI_RELEASE_GIL;
sleep(up.auto_reload);
UWSGI_GET_GIL;
// do not start monitoring til the first app is loaded (required for lazy mode)
if (uwsgi_apps_cnt == 0) continue;
if (uwsgi.lazy || uwsgi.lazy_apps) {
// do not start monitoring til the first app is loaded (required for lazy mode)
if (uwsgi_apps_cnt == 0) continue;
}
#ifdef UWSGI_PYTHON_OLD
int pos = 0;
#else