fix: add continue to error handling in leaseListenWorker
Ensure the retry loop continues after logging an error and sleeping, preventing potential failure to accept new streams. This fixes a logic issue where the default case did not loop back properly.
lemon-mint committed
Oct 29, 2025 at 16:28 UTC
75274916fa67c56c8b3889cecb3f196da213379b
1 file changed
+1
relaydns/client.go
+1
@@ -187,6 +187,7 @@ func (g *RelayClient) leaseListenWorker() {
187
default:
188
log.Debug().Err(err).Msg("[RelayClient] Error accepting stream, retrying")
189
time.Sleep(500 * time.Millisecond) // waiting for reconnection
190
+ continue
191
}
192
}
193
log.Debug().Uint32("stream_id", stream.StreamID()).Msg("[RelayClient] Accepted incoming stream")