Skip to content

Commit

Permalink
Move NotifyQuit in JackServer::Stop.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Oct 24, 2012
1 parent aa02fee commit 700489b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion common/JackLibAPI.cpp
Expand Up @@ -177,7 +177,7 @@ LIB_EXPORT jack_client_t* jack_client_open(const char* ext_client_name, jack_opt
va_end(ap);
JackGlobals::fOpenMutex->Unlock();
return res;
} catch(std::bad_alloc& e) {
} catch (std::bad_alloc& e) {
jack_error("Memory allocation error...");
return NULL;
} catch (...) {
Expand Down
8 changes: 4 additions & 4 deletions common/JackLockedEngine.h
Expand Up @@ -41,7 +41,7 @@ catch (...) {
*/

#define CATCH_EXCEPTION_RETURN \
} catch(std::bad_alloc& e) { \
} catch (std::bad_alloc& e) { \
jack_error("Memory allocation error..."); \
return -1; \
} catch (...) { \
Expand All @@ -50,10 +50,10 @@ catch (...) {
} \

#define CATCH_CLOSE_EXCEPTION_RETURN \
} catch(std::bad_alloc& e) { \
} catch (std::bad_alloc& e) { \
jack_error("Memory allocation error..."); \
return -1; \
} catch(JackTemporaryException& e) { \
} catch (JackTemporaryException& e) { \
jack_error("JackTemporaryException : now quits..."); \
JackTools::KillServer(); \
return 0; \
Expand All @@ -63,7 +63,7 @@ catch (...) {
}

#define CATCH_EXCEPTION \
} catch(std::bad_alloc& e) { \
} catch (std::bad_alloc& e) { \
jack_error("Memory allocation error..."); \
} catch (...) { \
jack_error("Unknown error..."); \
Expand Down
2 changes: 1 addition & 1 deletion common/JackServer.cpp
Expand Up @@ -134,7 +134,6 @@ int JackServer::Open(jack_driver_desc_t* driver_desc, JSList* driver_params)
int JackServer::Close()
{
jack_log("JackServer::Close");
fEngine->NotifyQuit();
fChannel.Close();
fAudioDriver->Detach();
fAudioDriver->Close();
Expand Down Expand Up @@ -190,6 +189,7 @@ int JackServer::Start()
int JackServer::Stop()
{
jack_log("JackServer::Stop");
fEngine->NotifyQuit();
fChannel.Stop();

fEngine->ShutDown();
Expand Down
2 changes: 1 addition & 1 deletion common/JackServerAPI.cpp
Expand Up @@ -162,7 +162,7 @@ SERVER_EXPORT jack_client_t* jack_client_open(const char* ext_client_name, jack_
va_end(ap);
JackGlobals::fOpenMutex->Unlock();
return res;
} catch(std::bad_alloc& e) {
} catch (std::bad_alloc& e) {
jack_error("Memory allocation error...");
return NULL;
} catch (...) {
Expand Down
2 changes: 1 addition & 1 deletion posix/JackSocketServerChannel.cpp
Expand Up @@ -97,7 +97,7 @@ int JackSocketServerChannel::Start()

void JackSocketServerChannel::Stop()
{
fThread.Kill();
fThread.Stop();
}

void JackSocketServerChannel::ClientCreate()
Expand Down

0 comments on commit 700489b

Please sign in to comment.