mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-07 08:44:07 +01:00
fix cancelRefresh
This commit is contained in:
parent
8ac4a0a1e1
commit
84f229f051
@ -248,7 +248,7 @@ func (s *GRPCServer) cancelPeerRoutines(ctx context.Context, accountID string, p
|
|||||||
ok := s.peersUpdateManager.CloseChannel(ctx, peer.ID, sessionID)
|
ok := s.peersUpdateManager.CloseChannel(ctx, peer.ID, sessionID)
|
||||||
if ok {
|
if ok {
|
||||||
_ = s.accountManager.OnPeerDisconnected(ctx, accountID, peer.Key)
|
_ = s.accountManager.OnPeerDisconnected(ctx, accountID, peer.Key)
|
||||||
s.secretsManager.CancelRefresh(sessionID)
|
s.secretsManager.CancelRefresh(peer.ID)
|
||||||
s.ephemeralManager.OnPeerDisconnected(ctx, peer)
|
s.ephemeralManager.OnPeerDisconnected(ctx, peer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user