# HG changeset patch # User Giulio Moro # Date 1451321451 -3600 # Node ID 3b364fb8c4ee72287f7445d34bf87f5bafbb60df # Parent fb2cf9c00024b0b131e72edab10f26c4203aa6d3 Fixed early return after first AuxiliaryTask was started diff -r fb2cf9c00024 -r 3b364fb8c4ee core/RTAudio.cpp --- 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::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; }