5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 16:20:26 +00:00

Fix panic (matrix). Closes #316

This commit is contained in:
Wim 2017-12-11 12:25:28 +01:00
parent 0a91b9e1c9
commit 4a4a29c9f6

View File

@ -106,6 +106,7 @@ func (b *Bmatrix) Send(msg config.Message) (string, error) {
res, err := b.mc.UploadToContentRepo(content, mtype, int64(len(*fi.Data))) res, err := b.mc.UploadToContentRepo(content, mtype, int64(len(*fi.Data)))
if err != nil { if err != nil {
flog.Errorf("file upload failed: %#v", err) flog.Errorf("file upload failed: %#v", err)
continue
} }
if strings.Contains(mtype, "video") { if strings.Contains(mtype, "video") {
flog.Debugf("sendVideo %s", res.ContentURI) flog.Debugf("sendVideo %s", res.ContentURI)