From 194793c17868a2ecc9ada927a8cfecf628152812 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 15 Sep 2023 16:05:36 +0800 Subject: [PATCH] 1 --- prototils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototils.go b/prototils.go index 4cbe45d..b0815aa 100644 --- a/prototils.go +++ b/prototils.go @@ -81,7 +81,7 @@ type WSProxyPackHead_S struct { } func (this *WspCliConn) IsValid() bool { - return this.Conn == nil || this.SocketHandle == 0 + return this.Conn != nil && this.SocketHandle != 0 } func (this *WspCliConn) Reset() {