mirror of https://github.com/fluffle/goirc
Allow client-side ping to be disabled by setting PingFreq to zero.
This commit is contained in:
parent
8fa5e5624e
commit
3183c9f177
|
@ -199,7 +199,9 @@ func (conn *Conn) postConnect() {
|
||||||
conn.sock.SetTimeout(conn.Timeout * second)
|
conn.sock.SetTimeout(conn.Timeout * second)
|
||||||
go conn.send()
|
go conn.send()
|
||||||
go conn.recv()
|
go conn.recv()
|
||||||
|
if conn.PingFreq > 0 {
|
||||||
go conn.ping()
|
go conn.ping()
|
||||||
|
}
|
||||||
go conn.runLoop()
|
go conn.runLoop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue