diff --git a/common/JackDriver.cpp b/common/JackDriver.cpp index 0d0dae04..591601f2 100644 --- a/common/JackDriver.cpp +++ b/common/JackDriver.cpp @@ -193,14 +193,14 @@ void JackDriverClient::RemoveSlave(JackDriverInterface* slave) } int JackDriverClient::ProcessSlaves() -{ +{ int res = 0; list::const_iterator it; for (it = fSlaveList.begin(); it != fSlaveList.end(); it++) { JackDriverInterface* slave = *it; - if ((res = slave->Process()) < 0) - return res; - } + if (slave->Process() < 0) + res = -1; + } return res; }