mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
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:
+1
-1
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user