Joyit 1 주 전
부모
커밋
e26b9d7ae1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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
 			}
 		}