import dummy_threading whenever threads are in place

This commit is contained in:
roberto@precise64
2012-04-18 10:14:41 +02:00
parent 1d31b35c4f
commit 1383163627
+1 -1
View File
@@ -275,7 +275,7 @@ void uwsgi_python_atexit() {
PyObject *module = PyImport_ImportModule("atexit");
Py_XDECREF(module);
if (uwsgi.threads > 1) {
if (uwsgi.has_threads) {
if (!PyImport_AddModule("dummy_threading"))
PyErr_Clear();
}