diff options
author | Wim <wim@42.be> | 2017-06-19 20:27:14 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-06-19 20:27:14 +0200 |
commit | e49266ae4360c2d75fd004cdec38528cc3127ffe (patch) | |
tree | f37052e361813bf987badb75fc0d62450a2f4d6e /vendor/github.com | |
parent | 62e9de1a3b79e57d884dcec8ef22ed6db2dc0df0 (diff) | |
download | matterbridge-msglm-e49266ae4360c2d75fd004cdec38528cc3127ffe.tar.gz matterbridge-msglm-e49266ae4360c2d75fd004cdec38528cc3127ffe.tar.bz2 matterbridge-msglm-e49266ae4360c2d75fd004cdec38528cc3127ffe.zip |
Update gitter vendor. (fixes crash)
Diffstat (limited to 'vendor/github.com')
-rw-r--r-- | vendor/github.com/sromku/go-gitter/stream.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/github.com/sromku/go-gitter/stream.go b/vendor/github.com/sromku/go-gitter/stream.go index 67a907cf..1c26ebeb 100644 --- a/vendor/github.com/sromku/go-gitter/stream.go +++ b/vendor/github.com/sromku/go-gitter/stream.go @@ -137,7 +137,10 @@ func (stream *Stream) connect() { res, err := stream.gitter.getResponse(stream.url, stream) if err != nil || res.StatusCode != 200 { - stream.gitter.log(fmt.Sprintf("Failed to get response, trying reconnect (Status code: %v)", res.StatusCode)) + stream.gitter.log("Failed to get response, trying reconnect") + if res != nil { + stream.gitter.log(fmt.Sprintf("Status code: %v", res.StatusCode)) + } stream.gitter.log(err) // sleep and wait |