skip client after closing unresponsive client
This commit is contained in:
parent
32e00480f8
commit
a25ee424aa
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ func SendPermanentBroadCastMessage() {
|
||||||
if time.Now().Sub(client.LastPong) > (10 * time.Second) {
|
if time.Now().Sub(client.LastPong) > (10 * time.Second) {
|
||||||
// Remove unresponsive client
|
// Remove unresponsive client
|
||||||
client.Conn.Close()
|
client.Conn.Close()
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
err := client.SendMessage(websocket.TextMessage, jsonMessage)
|
err := client.SendMessage(websocket.TextMessage, jsonMessage)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue