Commit 6b6e355d authored by sletz's avatar sletz
Browse files

Correct JackPosixSemaphore::Disconnect.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4013 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 399936ee
......@@ -184,9 +184,8 @@ bool JackPosixSemaphore::ConnectOutput(const char* name, const char* server_name
bool JackPosixSemaphore::Disconnect()
{
jack_log("JackPosixSemaphore::Disconnect %s", fName);
if (fSemaphore) {
jack_log("JackPosixSemaphore::Disconnect %s", fName);
if (sem_close(fSemaphore) != 0) {
jack_error("Disconnect: can't disconnect named semaphore name = %s err = %s", fName, strerror(errno));
return false;
......
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