Skip to content
Snippets Groups Projects
Unverified Commit d659cbe1 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Drop dead connections when needed

Fix after 60bef82d.
parent f45d2d56
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ class Plugins:
if self.__clients[client.cid()].last_pong + 900 < time.time():
# The client seems connected, but it didn't pong for really long time, kill it
logger.warn('Stray connection from %s, dropping old connection', client.cid())
if client.session_id is not None and self.__clients[client.cid()].session_id == client.session_id:
elif client.session_id is not None and self.__clients[client.cid()].session_id == client.session_id:
logger.warn('Taking over previous connection from session %s on client %s', client.session_id, client.cid())
else:
logger.warn("%s already connected, dropping connection", client.cid())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment