mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-04 18:38:12 +02:00
fix nil session error
This commit is contained in:
parent
a8efb5901e
commit
e21dc6fbc3
1 changed files with 5 additions and 0 deletions
|
@ -339,6 +339,11 @@ func (mgr *Manager) deleteSession(ctx context.Context, sessionID string) {
|
||||||
})
|
})
|
||||||
if status.Code(err) == codes.NotFound {
|
if status.Code(err) == codes.NotFound {
|
||||||
return
|
return
|
||||||
|
} else if err != nil {
|
||||||
|
log.Ctx(ctx).Error().Err(err).
|
||||||
|
Str("session_id", sessionID).
|
||||||
|
Msg("failed to delete session")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
record := res.GetRecord()
|
record := res.GetRecord()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue