Cancel peer expiration scheduled job when deleting account (#1434)

This commit is contained in:
Maycon Santos
2024-01-04 17:10:55 +01:00
committed by GitHub
parent 1de3bb5420
commit 1f3a12d941

View File

@ -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
}