1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-07-14 13:10:13 -04:00

Fix a potential issue causing high CPU usage

This commit is contained in:
Darien Raymond
2017-03-02 11:54:40 +01:00
parent 9206d7a741
commit 514dcffe2e
3 changed files with 15 additions and 10 deletions

View File

@@ -93,6 +93,7 @@ func (w *tcpWorker) handleConnections(conns <-chan internet.Connection) {
for {
select {
case conn := <-conns:
conn.SetReusable(false)
conn.Close()
default:
break L