[#130] pool: Process expired session tokens as invalid

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-02-02 16:27:20 +03:00 committed by Angira Kekteeva
parent a86c08b3ee
commit bfff21965d

View file

@ -523,7 +523,8 @@ func (p *pool) checkSessionTokenErr(err error, address string) bool {
return false
}
if strings.Contains(err.Error(), "session token does not exist") {
if strings.Contains(err.Error(), "session token does not exist") ||
strings.Contains(err.Error(), "session token has been expired") {
p.cache.DeleteByPrefix(address)
return true
}