mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
Cancel peer expiration scheduled job when deleting account (#1434)
This commit is contained in:
@@ -1086,6 +1086,9 @@ func (am *DefaultAccountManager) DeleteAccount(accountID, userID string) error {
|
|||||||
log.Errorf("failed deleting account %s. error: %s", accountID, err)
|
log.Errorf("failed deleting account %s. error: %s", accountID, err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
// cancel peer login expiry job
|
||||||
|
am.peerLoginExpiry.Cancel([]string{account.Id})
|
||||||
|
|
||||||
log.Debugf("account %s deleted", accountID)
|
log.Debugf("account %s deleted", accountID)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user