diff options
author | Polynomdivision <papatutuwawa@polynom.me> | 2021-10-30 15:50:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-30 17:50:37 +0200 |
commit | 5e1be8e5581779da5b84815b2e9c437d31113e7c (patch) | |
tree | 5fd47c0f6930b3ba396bb19ba2eb62ec0abdc089 /bridge | |
parent | 835dd2635af46e3c8604fae8c9d383a80535c29e (diff) | |
download | matterbridge-msglm-5e1be8e5581779da5b84815b2e9c437d31113e7c.tar.gz matterbridge-msglm-5e1be8e5581779da5b84815b2e9c437d31113e7c.tar.bz2 matterbridge-msglm-5e1be8e5581779da5b84815b2e9c437d31113e7c.zip |
Do not fail on no avatar data (xmpp) #1529 (#1627)
* Detect errors when working with AvatarData
* Remove not neccessary line
Co-authored-by: Wim <wim@42.be>
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/xmpp/xmpp.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 687ca071..cf58a2fc 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -283,7 +283,13 @@ func (b *Bxmpp) handleXMPP() error { for { m, err := b.xc.Recv() if err != nil { - return err + // An error together with AvatarData is non-fatal + switch m.(type) { + case xmpp.AvatarData: + continue + default: + return err + } } switch v := m.(type) { |