This commit is contained in:
2019-08-08 16:55:37 +02:00
parent eaf0d8668b
commit ca2c284017
5 changed files with 71 additions and 15 deletions

View File

@@ -761,12 +761,12 @@ int slsDetector::getControlPort() const { return shm()->controlPort; }
int slsDetector::getStopPort() const { return shm()->stopPort; }
int slsDetector::lockServer(int lock) {
bool slsDetector::lockServer(int lock) {
int retval = -1;
FILE_LOG(logDEBUG1) << "Setting detector server lock to " << lock;
sendToDetector(F_LOCK_SERVER, lock, retval);
FILE_LOG(logDEBUG1) << "Lock: " << retval;
return retval;
return (retval == 1 ? true : false);
}
std::string slsDetector::getLastClientIP() {