changeset 177:3b364fb8c4ee

Fixed early return after first AuxiliaryTask was started
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 28 Dec 2015 17:50:51 +0100
parents fb2cf9c00024
children a156a694864d
files core/RTAudio.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/RTAudio.cpp	Mon Dec 28 16:22:54 2015 +0100
+++ b/core/RTAudio.cpp	Mon Dec 28 17:50:51 2015 +0100
@@ -393,9 +393,10 @@
 	// The user may have created other tasks. Start those also.
 	vector<InternalAuxiliaryTask*>::iterator it;
 	for(it = getAuxTasks().begin(); it != getAuxTasks().end(); it++) {
-		return BeagleRT_startAuxiliaryTask(*it);
+		int ret = BeagleRT_startAuxiliaryTask(*it);
+		if(ret != 0)
+			return -2;
 	}
-
 	return 0;
 }