From 444bb5daec945efebc1527eb2369ea2db2084653 Mon Sep 17 00:00:00 2001 From: Toby Date: Thu, 22 Apr 2021 18:09:48 -0700 Subject: [PATCH] handleControlStream should not always return true --- pkg/core/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/client.go b/pkg/core/client.go index 68a0ea1..1efaaaf 100644 --- a/pkg/core/client.go +++ b/pkg/core/client.go @@ -140,7 +140,7 @@ func (c *Client) handleControlStream(qs quic.Session, stream quic.Stream) (bool, if sh.OK && c.congestionFactory != nil { qs.SetCongestionControl(c.congestionFactory(sh.Rate.RecvBPS)) } - return true, sh.Message, nil + return sh.OK, sh.Message, nil } func (c *Client) handleMessage(qs quic.Session) {