Fix Client crash on ARM

Align 64bit atomic fields, see
https://golang.org/pkg/sync/atomic/#pkg-note-BUG

Fixes #16
This commit is contained in:
Moises Marangoni
2019-06-02 21:20:04 -03:00
committed by Aleksandr Razumov
parent d73420a61e
commit b0a423d2bf

View File

@@ -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