diff options
Diffstat (limited to 'src/timers.go')
-rw-r--r-- | src/timers.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/timers.go b/src/timers.go index 31165a3..d372b0d 100644 --- a/src/timers.go +++ b/src/timers.go @@ -321,8 +321,14 @@ func (peer *Peer) RoutineHandshakeInitiator() { goto BeginHandshakes
case <-timeout.C:
- // TODO: Clear source address for peer
- continue
+
+ // clear source address of peer
+
+ peer.mutex.Lock()
+ if peer.endpoint != nil {
+ peer.endpoint.ClearSrc()
+ }
+ peer.mutex.Unlock()
}
}
|