receiver online flag sets back to offline if it tried to connect and didnt work

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@280 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2012-10-03 08:58:01 +00:00
parent d6ff3e9227
commit 6f9e265949
2 changed files with 12 additions and 6 deletions

View File

@ -5326,7 +5326,8 @@ int slsDetector::setReceiverOnline(int off) {
if (off!=GET_ONLINE_FLAG) {
thisDetector->receiverOnlineFlag=off;
if (thisDetector->receiverOnlineFlag==ONLINE_FLAG)
setReceiverTCPSocket();
if(setReceiverTCPSocket()==FAIL)
thisDetector->receiverOnlineFlag=OFFLINE_FLAG;
}
return thisDetector->receiverOnlineFlag;
}