Browse Source

Fix regression due to thread backends commit

Bart van Strien 14 năm trước cách đây
mục cha
commit
77ccb93506
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;
 	}