check for giving an error in gui if cannot connect to hostname

This commit is contained in:
Dhanya Maliakal
2016-10-18 15:06:01 +02:00
parent ca89835035
commit 028ba57876
2 changed files with 7 additions and 7 deletions

View File

@ -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;