diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-02-04 16:46:24 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-02-04 16:46:24 +0100 |
commit | 9c5083bd1982f7c82f8007cbaec4da4da70e0aad (patch) | |
tree | f3c7d8075ea8d42872c1500714fd338091913012 /peer.go | |
parent | a0f54cbe5ac2cd8b8296c2c57c30029dd349cff0 (diff) | |
download | wireguard-go-9c5083bd1982f7c82f8007cbaec4da4da70e0aad.tar.gz wireguard-go-9c5083bd1982f7c82f8007cbaec4da4da70e0aad.zip |
Removed debugging locks
Diffstat (limited to '')
-rw-r--r-- | peer.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -4,7 +4,6 @@ import ( "encoding/base64" "errors" "fmt" - "github.com/sasha-s/go-deadlock" "sync" "time" ) @@ -15,7 +14,7 @@ const ( type Peer struct { isRunning AtomicBool - mutex deadlock.RWMutex + mutex sync.RWMutex persistentKeepaliveInterval uint64 keyPairs KeyPairs handshake Handshake @@ -29,7 +28,7 @@ type Peer struct { } time struct { - mutex deadlock.RWMutex + mutex sync.RWMutex lastSend time.Time // last send message lastHandshake time.Time // last completed handshake nextKeepalive time.Time @@ -66,7 +65,7 @@ type Peer struct { } routines struct { - mutex deadlock.Mutex // held when stopping / starting routines + mutex sync.Mutex // held when stopping / starting routines starting sync.WaitGroup // routines pending start stopping sync.WaitGroup // routines pending stop stop Signal // size 0, stop all go-routines in peer |