Переглянути джерело

Fix regression due to thread backends commit

Bart van Strien 14 роки тому
батько
коміт
77ccb93506
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      src/modules/thread/wrap_Thread.cpp

+ 2 - 0
src/modules/thread/wrap_Thread.cpp

@@ -204,7 +204,9 @@ namespace thread
 				return luaL_error(L, "Expected boolean, number, string or userdata");
 		}
 		t->set(name, v);
+		t->lock();
 		v->release();
+		t->unlock();
 		return 0;
 	}