reverted disconnecting
This commit is contained in:
parent
ce44c83ae8
commit
7779ba775e
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue