From f9bf9fd073325d9abdeb7cdb880aeba489c6eb27 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 2 Feb 2006 18:03:07 +0000 Subject: [PATCH] fix for deadlock problem (as suggested by Andy) --- src/Scripting/NasalSys.hxx | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5