mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
session_rpcserver: use the Expired state for expired sessions
This commit is contained in:
parent
1ed4907097
commit
3272dda2a1
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ func (s *sessionRpcServer) resumeSession(ctx context.Context,
|
|||
log.Debugf("Not resuming session %x with expiry %s",
|
||||
pubKeyBytes, sess.Expiry)
|
||||
|
||||
err := s.cfg.db.ShiftState(sess.ID, session.StateRevoked)
|
||||
err := s.cfg.db.ShiftState(sess.ID, session.StateExpired)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error revoking session: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue