Browse Source

Fix regression due to thread backends commit

Bart van Strien 14 years ago
parent
commit
77ccb93506
1 changed files with 2 additions and 0 deletions
  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;
 	}