Skip to content

Commit

Permalink
不用了
Browse files Browse the repository at this point in the history
  • Loading branch information
zanjie1999 committed Dec 14, 2021
1 parent e2f08d4 commit 61f1a7e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tcp2ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 61f1a7e

Please sign in to comment.