This commit is contained in:
Pascal Fischer 2024-11-06 20:34:06 +01:00
parent 22126d0484
commit 8ac4a0a1e1

View File

@ -245,11 +245,9 @@ func (s *GRPCServer) sendUpdate(ctx context.Context, accountID string, peerKey w
}
func (s *GRPCServer) cancelPeerRoutines(ctx context.Context, accountID string, peer *nbpeer.Peer, sessionID string) {
bool1 := s.peersUpdateManager.CloseChannel(ctx, peer.ID, sessionID)
if bool1 {
ok := s.peersUpdateManager.CloseChannel(ctx, peer.ID, sessionID)
if ok {
_ = s.accountManager.OnPeerDisconnected(ctx, accountID, peer.Key)
s.secretsManager.CancelRefresh(sessionID)
s.ephemeralManager.OnPeerDisconnected(ctx, peer)
}