diff options
author | Gary Kim <gary@garykim.dev> | 2020-09-04 16:14:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 22:14:36 +0200 |
commit | 75f67d2de41de063c1fdfaee349b11929eca47eb (patch) | |
tree | 43539f62100ef52a874139225b9980388a230073 /vendor/gomod.garykim.dev/nc-talk/room/room.go | |
parent | 712385ffd58ad01d1c257b63a7b0299134d95209 (diff) | |
download | matterbridge-msglm-75f67d2de41de063c1fdfaee349b11929eca47eb.tar.gz matterbridge-msglm-75f67d2de41de063c1fdfaee349b11929eca47eb.tar.bz2 matterbridge-msglm-75f67d2de41de063c1fdfaee349b11929eca47eb.zip |
Update nc-talk dependency (#1226)
Diffstat (limited to 'vendor/gomod.garykim.dev/nc-talk/room/room.go')
-rw-r--r-- | vendor/gomod.garykim.dev/nc-talk/room/room.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 |