From 75f67d2de41de063c1fdfaee349b11929eca47eb Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Fri, 4 Sep 2020 16:14:36 -0400 Subject: Update nc-talk dependency (#1226) --- vendor/gomod.garykim.dev/nc-talk/room/room.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vendor/gomod.garykim.dev/nc-talk/room/room.go') diff --git a/vendor/gomod.garykim.dev/nc-talk/room/room.go b/vendor/gomod.garykim.dev/nc-talk/room/room.go index 3527bb7a..b53b01fc 100644 --- a/vendor/gomod.garykim.dev/nc-talk/room/room.go +++ b/vendor/gomod.garykim.dev/nc-talk/room/room.go @@ -130,6 +130,7 @@ func (t *TalkRoom) ReceiveMessages(ctx context.Context) (chan ocs.TalkRoomMessag if res.StatusCode == 200 { lastKnown = res.Header.Get("X-Chat-Last-Given") data, err := ioutil.ReadAll(res.Body) + _ = res.Body.Close() if err != nil { continue } @@ -140,7 +141,9 @@ func (t *TalkRoom) ReceiveMessages(ctx context.Context) (chan ocs.TalkRoomMessag for _, msg := range message.OCS.TalkRoomMessage { c <- msg } + continue } + _ = res.Body.Close() } }() return c, nil -- cgit v1.2.3