mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
format code
This commit is contained in:
parent
3f0f8f005d
commit
53eff7bb3e
@ -47,15 +47,15 @@ func (vconn *FreedomConnection) Start(ray core.OutboundRay) error {
|
|||||||
go dumpInput(conn, input, writeFinish)
|
go dumpInput(conn, input, writeFinish)
|
||||||
go dumpOutput(conn, output, readFinish)
|
go dumpOutput(conn, output, readFinish)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
<-writeFinish
|
<-writeFinish
|
||||||
if tcpConn, ok := conn.(*net.TCPConn); ok {
|
if tcpConn, ok := conn.(*net.TCPConn); ok {
|
||||||
tcpConn.CloseWrite()
|
tcpConn.CloseWrite()
|
||||||
}
|
}
|
||||||
<-readFinish
|
<-readFinish
|
||||||
conn.Close()
|
conn.Close()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user