summaryrefslogtreecommitdiff
path: root/common/JackDriver.cpp
diff options
context:
space:
mode:
authorsletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2006-11-22 14:59:05 +0000
committersletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2006-11-22 14:59:05 +0000
commitc650232f5a2dda8a643a69a0e5c141abc8e96c54 (patch)
tree55704a1a712927574e6fe0104d0fef5f0c2b6981 /common/JackDriver.cpp
parent95454b4ad9baee43abd1d11aa3587be4c09fa98f (diff)
downloadjack2-c650232f5a2dda8a643a69a0e5c141abc8e96c54.tar.gz
Correct ProcessSlaves
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1304 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'common/JackDriver.cpp')
-rw-r--r--common/JackDriver.cpp8
1 files 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<JackDriverInterface*>::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;
}