From e0312efe3390698e233374ed174ce54a37ff27e5 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Sat, 28 Nov 2020 21:42:15 -0800 Subject: [PATCH] Fix candidateBase Marshal receiver type Should be a pointer, not a value. Copying the atomics was causing a race Resolves #307 --- candidate_base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/candidate_base.go b/candidate_base.go index 7ea0a79..2f16a8a 100644 --- a/candidate_base.go +++ b/candidate_base.go @@ -388,7 +388,7 @@ func (c *candidateBase) context() context.Context { } // Marshal returns the string representation of the ICECandidate -func (c candidateBase) Marshal() string { +func (c *candidateBase) Marshal() string { val := fmt.Sprintf("%s %d %s %d %s %d typ %s", c.Foundation(), c.Component(),