From dcf666ccc18bde027312c690993db7ea69e94dcf Mon Sep 17 00:00:00 2001 From: alxmcp <215134852+alxmcp@users.noreply.github.com> Date: Wed, 15 Apr 2026 12:41:50 +0300 Subject: [PATCH] chore: Fix lint err --- client/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/main.go b/client/main.go index e797859..b7ec2a9 100644 --- a/client/main.go +++ b/client/main.go @@ -2449,7 +2449,11 @@ func createSmuxSession(ctx context.Context, tp *turnParams, peer *net.UDPAddr, i cleanup() return nil, nil, fmt.Errorf("KCP session: %w", err) } - cleanupFns = append(cleanupFns, func() { _ = cleanupKCP() }) + cleanupFns = append(cleanupFns, func() { + if err := cleanupKCP(); err != nil { + log.Printf("KCP cleanup error: %v", err) + } + }) log.Printf("KCP session established") // 6. Create smux client session over KCP