From b0a423d2bfa9156a26600009803a80b92be898b4 Mon Sep 17 00:00:00 2001 From: Moises Marangoni Date: Sun, 2 Jun 2019 21:20:04 -0300 Subject: [PATCH] Fix Client crash on ARM Align 64bit atomic fields, see https://golang.org/pkg/sync/atomic/#pkg-note-BUG Fixes #16 --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 9545e38..9374e96 100644 --- a/client.go +++ b/client.go @@ -187,10 +187,10 @@ type ClientAgent interface { // Client simulates "connection" to STUN server. type Client struct { + rto int64 // time.Duration a ClientAgent c Connection close chan struct{} - rto int64 // time.Duration rtoRate time.Duration maxAttempts int32 closed bool