summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2025-03-28 21:22:41 +0100
committerHimbeer <himbeer@disroot.org>2025-03-28 21:22:41 +0100
commit25a3f019af5f1e660073763d7fef5b9a37fbd62b (patch)
tree90d672e61b2f59d8e461748cbd688aac0f8432e4
parent7b34834724f753b07e72a54f60f364f135654871 (diff)
Fix sendPings goroutine not being started for clients from ListenerHEADmaster
-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
}