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
+1
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