This commit is contained in:
Dhanya Maliakal
2017-08-22 19:43:26 +02:00
parent a7dab9a257
commit 4f28df03ab
2 changed files with 11 additions and 11 deletions

View File

@ -3590,10 +3590,10 @@ string multiSlsDetector::setNetworkParameter(networkParameter p, string s){
// disable data streaming before changing zmq port (but only if they were on)
/*int prev_streaming = 0;*/
if (p == RECEIVER_STREAMING_PORT) {
// if (p == RECEIVER_STREAMING_PORT) {
/*prev_streaming = getStreamingSocketsCreatedInClient();*/
enableDataStreamingFromReceiver(0);
}
// enableDataStreamingFromReceiver(0);
// }
if (s.find('+')==string::npos) {
@ -5883,8 +5883,8 @@ int multiSlsDetector::getStreamingSocketsCreatedInClient() {
int multiSlsDetector::enableDataStreamingFromReceiver(int enable){
if(enable >= 0){
/*if(dataSocketsStarted != enable){*/
/* if(enable >= 0){
//destroy data threads
if(dataSocketsStarted)
createReceivingDataSockets(true);
@ -5899,9 +5899,9 @@ int multiSlsDetector::enableDataStreamingFromReceiver(int enable){
return -1;
}
}
/*}*/
}
}*/
@ -5937,9 +5937,9 @@ int multiSlsDetector::enableDataStreamingFromReceiver(int enable){
}
}
if(ret != dataSocketsStarted)
/* if(ret != dataSocketsStarted)
ret = -1;
*/
return ret;
}