summaryrefslogtreecommitdiff
path: root/common/JackClient.cpp
diff options
context:
space:
mode:
authorStephane Letz <letz@grame.fr>2013-01-09 16:05:48 +0100
committerStephane Letz <letz@grame.fr>2013-01-09 16:05:48 +0100
commite111f2ac8fd9309d2911b0e36e0579094fe2d7a5 (patch)
tree2a299bb812d7674a0c98249765e3dc506634f293 /common/JackClient.cpp
parentc2835c20b549b3f11ce8491ed46c754b05c4afa2 (diff)
downloadjack2-e111f2ac8fd9309d2911b0e36e0579094fe2d7a5.tar.gz
Protect shared fSynchroTable access with a mutex.
Diffstat (limited to 'common/JackClient.cpp')
-rw-r--r--common/JackClient.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/JackClient.cpp b/common/JackClient.cpp
index fd12bc22..3ab96308 100644
--- a/common/JackClient.cpp
+++ b/common/JackClient.cpp
@@ -117,7 +117,10 @@ int JackClient::Close()
}
fChannel->Close();
+ assert(JackGlobals::fSynchroMutex);
+ JackGlobals::fSynchroMutex->Lock();
fSynchroTable[GetClientControl()->fRefNum].Disconnect();
+ JackGlobals::fSynchroMutex->Unlock();
JackGlobals::fClientTable[GetClientControl()->fRefNum] = NULL;
return result;
}