mirror of
https://github.com/netbirdio/netbird.git
synced 2025-02-23 05:31:28 +01:00
Cancel peer expiration scheduled job when deleting account (#1434)
This commit is contained in:
parent
1de3bb5420
commit
1f3a12d941
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user