From bfff21965df352912fdeb490ccb24f1325ce7365 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 2 Feb 2022 16:27:20 +0300 Subject: [PATCH] [#130] pool: Process expired session tokens as invalid Signed-off-by: Alex Vanin --- pool/pool.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pool/pool.go b/pool/pool.go index a5f95700..336de1a5 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -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 }