rx_hostname command line bug: should not setreceiveronline if connecting to a new receiver without clearing shm

This commit is contained in:
maliakal_d 2019-07-17 17:02:40 +02:00
parent 8cdfe4194f
commit 3ef8b392db

View File

@ -2891,7 +2891,10 @@ std::string slsDetectorCommand::cmdNetworkParameter(int narg, const char * const
return helpNetworkParameter(action);
myDet->setOnline(ONLINE_FLAG, detPos);
myDet->setReceiverOnline(ONLINE_FLAG, detPos);
// when changing hostnames, dont connect to previous one
if (cmd != "rx_hostname")
myDet->setReceiverOnline(ONLINE_FLAG, detPos);
if (cmd == "detectormac") {
if (action == PUT_ACTION) {