From 61f1a7e178567e8b94da41055eb6aaf47f7cf864 Mon Sep 17 00:00:00 2001 From: zanjie1999 Date: Tue, 14 Dec 2021 17:37:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E7=94=A8=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tcp2ws.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/tcp2ws.go b/tcp2ws.go index 3848573..a4d2403 100644 --- a/tcp2ws.go +++ b/tcp2ws.go @@ -59,8 +59,6 @@ func setConn(uuid string, conn *tcp2wsSparkle) { func deleteConn(uuid string) { if conn, haskey := getConn(uuid); haskey && conn != nil && !conn.del{ conn.del = true - // 等一下再关闭 避免太快多线程锁不到 - time.Sleep(100 * time.Millisecond) if conn.tcpConn != nil { conn.tcpConn.Close() }