mirror of https://github.com/fluffle/goirc
Ping/Pong message.
This commit is contained in:
parent
d1bf2c3a68
commit
60b9313a7a
|
@ -272,7 +272,7 @@ func (conn *Conn) ping() {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-tick.C:
|
case <-tick.C:
|
||||||
conn.Ping(time.Now().UnixNano())
|
conn.Ping(fmt.Sprintf("%d", time.Now().UnixNano()))
|
||||||
case <-conn.cPing:
|
case <-conn.cPing:
|
||||||
tick.Stop()
|
tick.Stop()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue