mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-15 00:19:24 +01:00
* Detect errors when working with AvatarData * Remove not neccessary line Co-authored-by: Wim <wim@42.be>
This commit is contained in:
parent
835dd2635a
commit
5e1be8e558
@ -283,7 +283,13 @@ func (b *Bxmpp) handleXMPP() error {
|
|||||||
for {
|
for {
|
||||||
m, err := b.xc.Recv()
|
m, err := b.xc.Recv()
|
||||||
if err != nil {
|
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) {
|
switch v := m.(type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user