Do not create m_convs in getConversation
This commit is contained in:
parent
8013e49cd4
commit
bfa4176bac
2 changed files with 3 additions and 1 deletions
|
@ -58,6 +58,8 @@ class ConversationManager {
|
|||
/// \param name legacy network name.
|
||||
/// \return Conversation or NULL.
|
||||
Conversation *getConversation(const std::string &name) {
|
||||
if (m_convs.find(name) == m_convs.end())
|
||||
return NULL;
|
||||
return m_convs[name];
|
||||
}
|
||||
|
||||
|
|
|
@ -889,7 +889,7 @@ void NetworkPluginServer::sendPing(Backend *c) {
|
|||
|
||||
send(c->connection, message);
|
||||
c->pongReceived = false;
|
||||
LOG4CXX_INFO(logger, "PING to " << c);
|
||||
// LOG4CXX_INFO(logger, "PING to " << c);
|
||||
}
|
||||
|
||||
NetworkPluginServer::Backend *NetworkPluginServer::getFreeClient() {
|
||||
|
|
Loading…
Add table
Reference in a new issue