mirror of
https://github.com/gortc/stun.git
synced 2025-09-26 20:41:36 +08:00
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:

committed by
Aleksandr Razumov

parent
d73420a61e
commit
b0a423d2bf
@@ -187,10 +187,10 @@ type ClientAgent interface {
|
|||||||
|
|
||||||
// Client simulates "connection" to STUN server.
|
// Client simulates "connection" to STUN server.
|
||||||
type Client struct {
|
type Client struct {
|
||||||
|
rto int64 // time.Duration
|
||||||
a ClientAgent
|
a ClientAgent
|
||||||
c Connection
|
c Connection
|
||||||
close chan struct{}
|
close chan struct{}
|
||||||
rto int64 // time.Duration
|
|
||||||
rtoRate time.Duration
|
rtoRate time.Duration
|
||||||
maxAttempts int32
|
maxAttempts int32
|
||||||
closed bool
|
closed bool
|
||||||
|
Reference in New Issue
Block a user