From c650232f5a2dda8a643a69a0e5c141abc8e96c54 Mon Sep 17 00:00:00 2001 From: sletz Date: Wed, 22 Nov 2006 14:59:05 +0000 Subject: [PATCH] Correct ProcessSlaves git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1304 0c269be4-1314-0410-8aa9-9f06e86f4224 --- common/JackDriver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.11.4.GIT