Joyit 1 week ago
parent
commit
e26b9d7ae1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      conn/ws2/ws2.go

+ 1 - 0
conn/ws2/ws2.go

@@ -94,6 +94,7 @@ func Server(cf *config.Config, bind string, path string, hash string, fn conn.Se
 			_, div, err = conn.ReadMessage()
 			if err != nil {
 				log.Println("[ws2 Server ReadFull ERROR]", err)
+				conn.Close()
 				return
 			}
 		}