mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-24 22:47:06 +02:00
golang minor changes cleanup.
This commit is contained in:
parent
609b3f0927
commit
46b8c9f42d
7 changed files with 18 additions and 24 deletions
|
@ -285,7 +285,7 @@ func (ws *WebSocketHandler) handle(connection *websocket.Conn, id string) {
|
|||
}
|
||||
case <-cancel:
|
||||
return
|
||||
case _ = <-ticker.C:
|
||||
case <-ticker.C:
|
||||
if err := connection.WriteMessage(websocket.PingMessage, nil); err != nil {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue