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);

View File

@@ -190,9 +190,7 @@ void ca_factory_cleanup(void*)
ChannelProviderRegistry::clients()->remove("ca");
ca_context_destroy();
} catch(std::exception& e) {
std::string message("Error when unregister \"ca\" factory");
message += e.what();
LOG(logLevelWarn,message.c_str());
LOG(logLevelWarn, "Error on unregistering \"ca\" factory: %s", e.what());
}
}