txlyre 1 month ago
parent
commit
befc4ee0ed
1 changed files with 1 additions and 3 deletions
  1. 1 3
      main.go

+ 1 - 3
main.go

@@ -37,9 +37,7 @@ func sender(queue chan []byte, secret string, cooldown uint) {
 			data := <-queue
 			data := <-queue
 
 
 			if err := ws.WriteMessage(websocket.BinaryMessage, data); err != nil {
 			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
 				break
 			}
 			}