Browse Source

Merge e933e28dca into d5dd20d793

pull/889/merge
Laxmi Devi GitHub 2 months ago
parent
commit
bba82493a8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      common/JackClient.cpp

+ 5
- 2
common/JackClient.cpp View File

@@ -109,14 +109,17 @@ int JackClient::Close()
int result = 0;

Deactivate();

assert(JackGlobals::fSynchroMutex);
// Channels is stopped first to avoid receiving notifications while closing
fChannel->Stop();
JackGlobals::fSynchroMutex->Lock();
fChannel->Stop();
JackGlobals::fSynchroMutex->Unlock();
// Then close client
fChannel->ClientClose(GetClientControl()->fRefNum, &result);
fChannel->Close();
assert(JackGlobals::fSynchroMutex);
JackGlobals::fSynchroMutex->Lock();
fSynchroTable[GetClientControl()->fRefNum].Disconnect();
JackGlobals::fSynchroMutex->Unlock();


Loading…
Cancel
Save