@@ -37,9 +37,7 @@ func sender(queue chan []byte, secret string, cooldown uint) {
data := <-queue
if err := ws.WriteMessage(websocket.BinaryMessage, data); err != nil {
- if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {
- log.Println("connection lost")
- }
+ log.Println("connection lost")
break
}