mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 23:37:14 +02:00
check for giving an error in gui if cannot connect to hostname
This commit is contained in:
@ -1246,18 +1246,16 @@ string slsDetector::checkOnline() {
|
||||
delete controlSocket;
|
||||
controlSocket=NULL;
|
||||
retval = string(thisDetector->hostname);
|
||||
thisDetector->onlineFlag=OFFLINE_FLAG;
|
||||
#ifdef VERBOSE
|
||||
//#ifdef VERBOSE
|
||||
std::cout<< "offline!" << std::endl;
|
||||
#endif
|
||||
//#endif
|
||||
} else {
|
||||
thisDetector->onlineFlag=ONLINE_FLAG;
|
||||
controlSocket->SetTimeOut(100);
|
||||
disconnectControl();
|
||||
thisDetector->onlineFlag=ONLINE_FLAG;
|
||||
#ifdef VERBOSE
|
||||
//#ifdef VERBOSE
|
||||
std::cout<< "online!" << std::endl;
|
||||
#endif
|
||||
//#endif
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
|
Reference in New Issue
Block a user