mirror of
https://github.com/SapphicCode/protoplex.git
synced 2025-12-24 13:08:00 +08:00
Fix a potential memory leak
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user