Fix candidateBase Marshal receiver type

Should be a pointer, not a value. Copying the atomics was causing a
race

Resolves #307
This commit is contained in:
Sean DuBois
2020-11-28 21:47:14 -08:00
parent c63930257f
commit e0312efe33
+1 -1
View File
@@ -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(),