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

fix lint warning

This commit is contained in:
Darien Raymond 2017-11-17 21:02:32 +01:00
parent a6393449e0
commit 028b2b74c9
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -175,10 +175,7 @@ func (s *Server) handleConnect(ctx context.Context, request *http.Request, reade
defer ray.InboundInput().Close()
v2reader := buf.NewReader(conn)
if err := buf.Copy(v2reader, ray.InboundInput(), buf.UpdateActivity(timer)); err != nil {
return err
}
return nil
return buf.Copy(v2reader, ray.InboundInput(), buf.UpdateActivity(timer))
})
responseDone := signal.ExecuteAsync(func() error {