From: mfranz Date: Thu, 2 Feb 2006 18:03:07 +0000 (+0000) Subject: fix for deadlock problem (as suggested by Andy) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9bf9fd073325d9abdeb7cdb880aeba489c6eb27;p=flightgear.git fix for deadlock problem (as suggested by Andy) --- diff --git a/src/Scripting/NasalSys.hxx b/src/Scripting/NasalSys.hxx index 09415c6bc..d99637719 100644 --- a/src/Scripting/NasalSys.hxx +++ b/src/Scripting/NasalSys.hxx @@ -118,7 +118,9 @@ public: void valueChanged(SGPropertyNode* node) { _nas->_cmdArg = node; naContext c = naNewContext(); + naModUnlock(); naCall(c, _handler, 0, 0, naNil(), naNil()); + naModLock(); if(naGetError(c)) _nas->logError(c); naFreeContext(c);