mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-20 01:00:56 +00:00
fix: ensure peekMutex is locked before handleSocket
This commit is contained in:
parent
c1d7d4be13
commit
f6911e21ea
1 changed files with 2 additions and 0 deletions
|
@ -469,6 +469,8 @@ func handleTCPConn(connCtx C.ConnContext) {
|
|||
)
|
||||
}
|
||||
|
||||
peekMutex.Lock()
|
||||
defer peekMutex.Unlock()
|
||||
handleSocket(connCtx, remoteConn)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue