Add comment

This commit is contained in:
Zoltán Papp 2024-07-11 15:37:34 +02:00
parent 30331e8f62
commit b5c9af9e9c

View File

@ -317,7 +317,7 @@ func (conn *Conn) GetKey() string {
} }
func (conn *Conn) reconnectLoopWithRetry() { func (conn *Conn) reconnectLoopWithRetry() {
// wait for the initial connection to be established // give chance to the peer to establish the initial connection
select { select {
case <-conn.ctx.Done(): case <-conn.ctx.Done():
case <-time.After(3 * time.Second): case <-time.After(3 * time.Second):