Fix a potential memory leak

This commit is contained in:
Cassandra
2018-12-06 11:16:44 +01:00
parent feb1f7201e
commit e3ccd145e3

View File

@@ -70,7 +70,7 @@ func connectionHandler(conn net.Conn, p []*protocols.Protocol) {
}
// run the proxy readers
closed := make(chan bool)
closed := make(chan bool, 2)
go proxy(conn, targetConn, closed)
go proxy(targetConn, conn, closed)