make changes suggested by andrew that remove warning messages
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user