Do not create m_convs in getConversation

This commit is contained in:
HanzZ 2011-07-19 01:25:26 +02:00
parent 8013e49cd4
commit bfa4176bac
2 changed files with 3 additions and 1 deletions

View file

@ -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];
}

View file

@ -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() {