fix bug that causes failure in monotor::stop for privider ca

This commit is contained in:
mrkraimer
2018-07-27 05:43:47 -04:00
parent 4e4554af4e
commit b7ea0fe59a
5 changed files with 10 additions and 26 deletions

View File

@@ -119,10 +119,10 @@ PvaClientPut::~PvaClientPut()
}
void PvaClientPut::checkPutState()
void PvaClientPut::checkConnectState()
{
if(PvaClient::getDebug()) {
cout << "PvaClientPut::checkPutState"
cout << "PvaClientPut::checkConnectState"
<< " channelName " << pvaClientChannel->getChannel()->getChannelName()
<< endl;
}
@@ -385,7 +385,7 @@ void PvaClientPut::issuePut()
if(putState==getActive || putState==putActive) {
string message = string("channel ")
+ pvaClientChannel->getChannel()->getChannelName()
+ "PvaClientPut::issueGet get or put aleady active ";
+ "PvaClientPut::issuePut get or put aleady active ";
throw std::runtime_error(message);
}
putState = putActive;
@@ -421,7 +421,7 @@ PvaClientPutDataPtr PvaClientPut::getData()
<< " channelName " << pvaClientChannel->getChannel()->getChannelName()
<< endl;
}
checkPutState();
checkConnectState();
if(putState==putIdle) get();
return pvaClientData;
}