mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-10-02 16:56:02 -04:00
close both stream immediately after error
This commit is contained in:
parent
18a4134358
commit
0e940fb1fa
@ -72,7 +72,7 @@ func (v *DefaultDispatcher) waitAndDispatch(wait func() error, destination v2net
|
|||||||
if err := wait(); err != nil {
|
if err := wait(); err != nil {
|
||||||
log.Info("DefaultDispatcher: Failed precondition: ", err)
|
log.Info("DefaultDispatcher: Failed precondition: ", err)
|
||||||
link.OutboundInput().CloseError()
|
link.OutboundInput().CloseError()
|
||||||
link.OutboundOutput().Close()
|
link.OutboundOutput().CloseError()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user