1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

remove unnecessary error message

This commit is contained in:
Darien Raymond 2017-02-10 12:01:52 +01:00
parent 396cf21597
commit e57124ab87
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -66,14 +66,12 @@ func NewHandler(ctx context.Context, config *proxyman.OutboundHandlerConfig) (*H
func (h *Handler) Dispatch(ctx context.Context, outboundRay ray.OutboundRay) { func (h *Handler) Dispatch(ctx context.Context, outboundRay ray.OutboundRay) {
err := h.proxy.Process(ctx, outboundRay, h) err := h.proxy.Process(ctx, outboundRay, h)
// Ensure outbound ray is properly closed. // Ensure outbound ray is properly closed.
if err != nil { if err != nil && errors.Cause(err) != io.EOF {
log.Warning("Proxyman|OutboundHandler: Failed to process outbound traffic: ", err) log.Warning("Proxyman|OutboundHandler: Failed to process outbound traffic: ", err)
if errors.Cause(err) != io.EOF {
outboundRay.OutboundOutput().CloseError() outboundRay.OutboundOutput().CloseError()
} else { } else {
outboundRay.OutboundOutput().Close() outboundRay.OutboundOutput().Close()
} }
}
outboundRay.OutboundInput().CloseError() outboundRay.OutboundInput().CloseError()
} }