1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

format code

This commit is contained in:
V2Ray 2015-09-22 18:43:30 +02:00
parent 3f0f8f005d
commit 53eff7bb3e

View File

@ -47,15 +47,15 @@ func (vconn *FreedomConnection) Start(ray core.OutboundRay) error {
go dumpInput(conn, input, writeFinish)
go dumpOutput(conn, output, readFinish)
go func() {
<-writeFinish
if tcpConn, ok := conn.(*net.TCPConn); ok {
tcpConn.CloseWrite()
}
<-readFinish
conn.Close()
}()
go func() {
<-writeFinish
if tcpConn, ok := conn.(*net.TCPConn); ok {
tcpConn.CloseWrite()
}
<-readFinish
conn.Close()
}()
return nil
}