mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
kept the same client interface:tb changed when fixing error codes/exceptions, modified multi print, fixed roi bug in indexing to sls
This commit is contained in:
@ -648,16 +648,19 @@ void slsDetector::disconnectControl() {
|
||||
controlSocket->Disconnect();
|
||||
}
|
||||
|
||||
|
||||
void slsDetector::connectDataError() {
|
||||
FILE_LOG(logERROR) << "Cannot connect to receiver";
|
||||
setErrorMask((getErrorMask())|(CANNOT_CONNECT_TO_RECEIVER));
|
||||
}
|
||||
|
||||
int slsDetector::connectData() {
|
||||
if (dataSocket) {
|
||||
if (dataSocket->Connect() >= 0)
|
||||
return OK;
|
||||
else {
|
||||
FILE_LOG(logERROR) << "Cannot connect to receiver";
|
||||
setErrorMask((getErrorMask())|(CANNOT_CONNECT_TO_RECEIVER));
|
||||
return FAIL;}
|
||||
connectDataError();
|
||||
return FAIL;
|
||||
}
|
||||
}
|
||||
return UNDEFINED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user