make changes suggested by andrew that remove warning messages

This commit is contained in:
mrkraimer
2018-01-29 10:19:56 -05:00
parent d3ce104c33
commit 4d2e682a95
2 changed files with 2 additions and 7 deletions

View File

@@ -422,13 +422,10 @@ void CAChannel::disconnectChannel()
<< " channelCreated " << (channelCreated ? "true" : "false")
<< endl;
}
bool disconnect = true;
{
Lock lock(requestsMutex);
if(!channelCreated) disconnect = false;
channelCreated = false;
if(!channelCreated) return;
}
if(!disconnect) return;
/* Clear CA Channel */
threadAttach();
ca_clear_channel(channelID);