1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-03 06:30:42 +00:00

closw conn in the same routine

This commit is contained in:
Darien Raymond 2017-01-28 16:28:18 +01:00
parent 1ee9450dfc
commit 9139a87865
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ func (v *TCPListener) Close() error {
close(v.awaitingConns)
for connErr := range v.awaitingConns {
if connErr.conn != nil {
go connErr.conn.Close()
connErr.conn.Close()
}
}
return nil

View File

@ -192,7 +192,7 @@ func (v *WSListener) Close() error {
close(v.awaitingConns)
for connErr := range v.awaitingConns {
if connErr.conn != nil {
go connErr.conn.Close()
connErr.conn.Close()
}
}
return nil