Corrected the session count when dropping connections.
This commit is contained in:
parent
60931c26a7
commit
0cd4e2188a
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ class ServerSessionHandler(SessionHandler):
|
||||||
return
|
return
|
||||||
player = session.player
|
player = session.player
|
||||||
if player:
|
if player:
|
||||||
nsess = len(self.sessions_from_player(player))
|
nsess = len(self.sessions_from_player(player)) - 1
|
||||||
remaintext = nsess and "%i session%s remaining" % (nsess, nsess > 1 and "s" or "") or "no more sessions"
|
remaintext = nsess and "%i session%s remaining" % (nsess, nsess > 1 and "s" or "") or "no more sessions"
|
||||||
session.log(_('Connection dropped: %s %s (%s)' % (session.player, session.address, remaintext)))
|
session.log(_('Connection dropped: %s %s (%s)' % (session.player, session.address, remaintext)))
|
||||||
session.at_disconnect()
|
session.at_disconnect()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue