fix unlogging

This commit is contained in:
Tomas Kopecek 2023-02-06 10:56:28 +01:00
parent 3df6133a62
commit 19f58b2f4f

View file

@ -2726,7 +2726,8 @@ class ClientSession(object):
except AuthExpired:
# this can happen when an exclusive session is forced
pass
self.setSession(None)
if session_id == self.sinfo['session-id']:
self.setSession(None)
def _forget(self):
"""Forget session information, but do not close the session