From 84f229f05120e0679a90aad9edcdaa792e7b93d4 Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Wed, 6 Nov 2024 20:47:25 +0100 Subject: [PATCH] fix cancelRefresh --- management/server/grpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/server/grpcserver.go b/management/server/grpcserver.go index 7b0346998..ddc844452 100644 --- a/management/server/grpcserver.go +++ b/management/server/grpcserver.go @@ -248,7 +248,7 @@ func (s *GRPCServer) cancelPeerRoutines(ctx context.Context, accountID string, p ok := s.peersUpdateManager.CloseChannel(ctx, peer.ID, sessionID) if ok { _ = s.accountManager.OnPeerDisconnected(ctx, accountID, peer.Key) - s.secretsManager.CancelRefresh(sessionID) + s.secretsManager.CancelRefresh(peer.ID) s.ephemeralManager.OnPeerDisconnected(ctx, peer) } }