This commit is contained in:
aozhiwei 2023-09-15 16:05:36 +08:00
parent bda6cd38df
commit 194793c178

View File

@ -81,7 +81,7 @@ type WSProxyPackHead_S struct {
} }
func (this *WspCliConn) IsValid() bool { func (this *WspCliConn) IsValid() bool {
return this.Conn == nil || this.SocketHandle == 0 return this.Conn != nil && this.SocketHandle != 0
} }
func (this *WspCliConn) Reset() { func (this *WspCliConn) Reset() {