[#130] pool: Process expired session tokens as invalid
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
a86c08b3ee
commit
bfff21965d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue