Commit f0b3dfa6 authored by Stephane Letz's avatar Stephane Letz
Browse files

More robust JackServer::Stop().

parent 94ff6adb
...@@ -160,7 +160,17 @@ int JackServer::Start() ...@@ -160,7 +160,17 @@ int JackServer::Start()
int JackServer::Stop() int JackServer::Stop()
{ {
jack_log("JackServer::Stop"); jack_log("JackServer::Stop");
int res = (fFreewheel) ? fThreadedFreewheelDriver->Stop() : fAudioDriver->Stop(); int res = -1;
if (fFreewheel) {
if (fThreadedFreewheelDriver) {
res = fThreadedFreewheelDriver->Stop();
}
} else {
if (fAudioDriver) {
res = fAudioDriver->Stop();
}
}
fEngine->NotifyQuit(); fEngine->NotifyQuit();
fRequestChannel.Stop(); fRequestChannel.Stop();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment