Browse Source

Move NotifyQuit in JackServer::Stop.

tags/1.9.9.5
Stephane Letz 13 years ago
parent
commit
700489b429
5 changed files with 8 additions and 8 deletions
  1. +1
    -1
      common/JackLibAPI.cpp
  2. +4
    -4
      common/JackLockedEngine.h
  3. +1
    -1
      common/JackServer.cpp
  4. +1
    -1
      common/JackServerAPI.cpp
  5. +1
    -1
      posix/JackSocketServerChannel.cpp

+ 1
- 1
common/JackLibAPI.cpp View File

@@ -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 (...) {


+ 4
- 4
common/JackLockedEngine.h View File

@@ -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 (...) { \
@@ -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; \
@@ -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..."); \


+ 1
- 1
common/JackServer.cpp View File

@@ -134,7 +134,6 @@ fail_close1:
int JackServer::Close()
{
jack_log("JackServer::Close");
fEngine->NotifyQuit();
fChannel.Close();
fAudioDriver->Detach();
fAudioDriver->Close();
@@ -190,6 +189,7 @@ int JackServer::Start()
int JackServer::Stop()
{
jack_log("JackServer::Stop");
fEngine->NotifyQuit();
fChannel.Stop();
fEngine->ShutDown();


+ 1
- 1
common/JackServerAPI.cpp View File

@@ -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 (...) {


+ 1
- 1
posix/JackSocketServerChannel.cpp View File

@@ -97,7 +97,7 @@ int JackSocketServerChannel::Start()

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

void JackSocketServerChannel::ClientCreate()


Loading…
Cancel
Save