From 0ef476b014a1f3ce2029edfc5ffc3de47a036a5f Mon Sep 17 00:00:00 2001 From: Viktor Liu <17948409+lixmal@users.noreply.github.com> Date: Sun, 16 Mar 2025 15:13:04 +0100 Subject: [PATCH] [client] Fix state dump panic (#3519) --- client/internal/peer/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/internal/peer/conn.go b/client/internal/peer/conn.go index dad757e38..42f71ed2f 100644 --- a/client/internal/peer/conn.go +++ b/client/internal/peer/conn.go @@ -140,6 +140,7 @@ func NewConn(engineCtx context.Context, config ConnConfig, statusRecorder *Statu statusRelay: NewAtomicConnStatus(), statusICE: NewAtomicConnStatus(), semaphore: semaphore, + dumpState: newStateDump(connLog), } ctrl := isController(config) @@ -163,7 +164,6 @@ func NewConn(engineCtx context.Context, config ConnConfig, statusRecorder *Statu go conn.handshaker.Listen() - conn.dumpState = newStateDump(connLog) go conn.dumpState.Start(ctx) return conn, nil }