Commit b506e090 authored by sletz's avatar sletz
Browse files

Correct error checking in JackGraphManager::Connect and JackGraphManager::Disconnect

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3415 0c269be4-1314-0410-8aa9-9f06e86f4224
parent b44fd2d2
......@@ -542,7 +542,7 @@ int JackGraphManager::Connect(jack_port_id_t port_src, jack_port_id_t port_dst)
jack_error("JackGraphManager::Connect failed port_src = %ld port_dst = %ld", port_src, port_dst);
goto end;
}
manager->Connect(port_dst, port_src);
res = manager->Connect(port_dst, port_src);
if (res < 0) {
jack_error("JackGraphManager::Connect failed port_dst = %ld port_src = %ld", port_dst, port_src);
goto end;
......@@ -583,12 +583,12 @@ int JackGraphManager::Disconnect(jack_port_id_t port_src, jack_port_id_t port_ds
goto end;
}
manager->Disconnect(port_src, port_dst);
res = manager->Disconnect(port_src, port_dst);
if (res < 0) {
jack_error("JackGraphManager::Disconnect failed port_src = %ld port_dst = %ld", port_src, port_dst);
goto end;
}
manager->Disconnect(port_dst, port_src);
res = manager->Disconnect(port_dst, port_src);
if (res < 0) {
jack_error("JackGraphManager::Disconnect failed port_dst = %ld port_src = %ld", port_dst, port_src);
goto end;
......
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