prevent CAChannel::disconnectChannel() from calling ca_clear_channel twice

This was causing a crash when exiting
This commit is contained in:
mrkraimer
2018-01-30 05:08:43 -05:00
parent 4d2e682a95
commit cb21eb4f1e

View File

@@ -425,6 +425,7 @@ void CAChannel::disconnectChannel()
{
Lock lock(requestsMutex);
if(!channelCreated) return;
channelCreated = false;
}
/* Clear CA Channel */
threadAttach();