Skip to content

Commit

Permalink
Cancel peer expiration scheduled job when deleting account (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon authored Jan 4, 2024
1 parent 1de3bb5 commit 1f3a12d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions management/server/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,9 @@ func (am *DefaultAccountManager) DeleteAccount(accountID, userID string) error {
log.Errorf("failed deleting account %s. error: %s", accountID, err)
return err
}
// cancel peer login expiry job
am.peerLoginExpiry.Cancel([]string{account.Id})

log.Debugf("account %s deleted", accountID)
return nil
}
Expand Down

0 comments on commit 1f3a12d

Please sign in to comment.