1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 02:35:23 +00:00

close both stream immediately after error

This commit is contained in:
Darien Raymond 2017-01-10 15:10:30 +01:00
parent 18a4134358
commit 0e940fb1fa
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -72,7 +72,7 @@ func (v *DefaultDispatcher) waitAndDispatch(wait func() error, destination v2net
if err := wait(); err != nil {
log.Info("DefaultDispatcher: Failed precondition: ", err)
link.OutboundInput().CloseError()
link.OutboundOutput().Close()
link.OutboundOutput().CloseError()
return
}