Commit 1bdbfae5 authored by sletz's avatar sletz
Browse files

Correct JackSocketClientChannel::Execute.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4650 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 4d1f3e81
......@@ -368,7 +368,6 @@ bool JackSocketClientChannel::Execute()
JackResult res;
if (event.Read(fNotificationSocket) < 0) {
fNotificationSocket->Close();
jack_error("JackSocketClientChannel read fail");
goto error;
}
......@@ -377,7 +376,6 @@ bool JackSocketClientChannel::Execute()
if (event.fSync) {
if (res.Write(fNotificationSocket) < 0) {
fNotificationSocket->Close();
jack_error("JackSocketClientChannel write fail");
goto error;
}
......@@ -385,6 +383,7 @@ bool JackSocketClientChannel::Execute()
return true;
error:
fNotificationSocket->Close();
fClient->ShutDown();
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