summaryrefslogtreecommitdiff
path: root/rudp
diff options
context:
space:
mode:
Diffstat (limited to 'rudp')
-rw-r--r--rudp/conn.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/rudp/conn.go b/rudp/conn.go
index 11ffe0d..4d195a8 100644
--- a/rudp/conn.go
+++ b/rudp/conn.go
@@ -150,6 +150,9 @@ func newConn(uc udpConn, id, remoteID PeerID) *Conn {
c.newAckBuf()
go c.recvUDPPkts()
+ if remoteID != PeerIDNil {
+ go c.sendPings(c.ping.C)
+ }
return c
}