fix for deadlock problem (as suggested by Andy)
This commit is contained in:
parent
c695e7c788
commit
f9bf9fd073
1 changed files with 2 additions and 0 deletions
|
@ -118,7 +118,9 @@ public:
|
||||||
void valueChanged(SGPropertyNode* node) {
|
void valueChanged(SGPropertyNode* node) {
|
||||||
_nas->_cmdArg = node;
|
_nas->_cmdArg = node;
|
||||||
naContext c = naNewContext();
|
naContext c = naNewContext();
|
||||||
|
naModUnlock();
|
||||||
naCall(c, _handler, 0, 0, naNil(), naNil());
|
naCall(c, _handler, 0, 0, naNil(), naNil());
|
||||||
|
naModLock();
|
||||||
if(naGetError(c))
|
if(naGetError(c))
|
||||||
_nas->logError(c);
|
_nas->logError(c);
|
||||||
naFreeContext(c);
|
naFreeContext(c);
|
||||||
|
|
Loading…
Reference in a new issue