reverted disconnecting

This commit is contained in:
HanzZ 2011-07-24 22:53:19 +02:00
parent ce44c83ae8
commit 7779ba775e

View file

@ -569,7 +569,8 @@ void NetworkPluginServer::pingTimeout() {
else {
LOG4CXX_INFO(logger, "Disconnecting backend " << (*it) << ". PING response not received.");
(*it)->connection->disconnect();
handleSessionFinished((*it));
(*it)->connection.reset();
// handleSessionFinished((*it));
}
}
@ -715,7 +716,9 @@ void NetworkPluginServer::handleUserDestroyed(User *user) {
if (c->users.size() == 0) {
LOG4CXX_INFO(logger, "Disconnecting backend " << c << ". There are no users.");
c->connection->disconnect();
handleSessionFinished(c);
c->connection.reset();
// handleSessionFinished(c);
// m_clients.erase(user->connection);
}
}