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 | |
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')
-rw-r--r-- | vendor/gomod.garykim.dev/nc-talk/CHANGELOG.md | 8 | ||||
-rw-r--r-- | vendor/gomod.garykim.dev/nc-talk/room/room.go | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/vendor/gomod.garykim.dev/nc-talk/CHANGELOG.md b/vendor/gomod.garykim.dev/nc-talk/CHANGELOG.md index 55e2cf03..987b0e19 100644 --- a/vendor/gomod.garykim.dev/nc-talk/CHANGELOG.md +++ b/vendor/gomod.garykim.dev/nc-talk/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v0.1.3](https://github.com/gary-kim/go-nc-talk/tree/v0.1.3) - 2020-09-03 + +[Full Changelog](https://github.com/gary-kim/go-nc-talk/compare/v0.1.2...v0.1.3) + +### Fixed + +- Close response bodies [\#15](https://github.com/gary-kim/go-nc-talk/pull/15) ([@gary-kim](https://github.com/gary-kim)) + ## [v0.1.2](https://github.com/gary-kim/go-nc-talk/tree/v0.1.2) - 2020-08-28 [Full Changelog](https://github.com/gary-kim/go-nc-talk/compare/v0.1.1...v0.1.2) 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 |