mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
trials
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user