diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-05-05 04:15:07 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-05-05 04:15:07 +0200 |
commit | 7a83f2565a13624d8cb9ca6adf1aced721777a9c (patch) | |
tree | 6b26f71c245b7ac3f1baba9d56dfd636c5b79d4f /send.go | |
parent | 4d9f3a2f535b8ddefff5ed70c8d191106c3030fa (diff) |
Removed old signals
Diffstat (limited to 'send.go')
-rw-r--r-- | send.go | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -222,6 +222,9 @@ func (peer *Peer) RoutineNonce() { // wait for key pair for { + + peer.event.newKeyPair.Clear() + keyPair = peer.keyPairs.Current() if keyPair != nil && keyPair.sendNonce < RejectAfterMessages { if time.Now().Sub(keyPair.created) < RejectAfterTime { @@ -229,12 +232,12 @@ func (peer *Peer) RoutineNonce() { } } - peer.signal.handshakeBegin.Send() + peer.event.handshakeBegin.Fire() logDebug.Println(peer, ": Awaiting key-pair") select { - case <-peer.signal.newKeyPair.Wait(): + case <-peer.event.newKeyPair.C: logDebug.Println(peer, ": Obtained awaited key-pair") case <-peer.signal.flushNonceQueue: goto NextPacket @@ -392,9 +395,9 @@ func (peer *Peer) RoutineSequentialSender() { // update timers - peer.TimerAnyAuthenticatedPacketTraversal() + peer.event.anyAuthenticatedPacketTraversal.Fire() if len(elem.packet) != MessageKeepaliveSize { - peer.TimerDataSent() + peer.event.dataSent.Fire() } peer.KeepKeyFreshSending() } |