Detect errors when working with AvatarData

This commit is contained in:
Alexander "PapaTutuWawa
2021-10-29 11:40:59 +02:00
parent b0e7b84f40
commit b56fe20ba1

View File

@@ -283,7 +283,13 @@ func (b *Bxmpp) handleXMPP() error {
for {
m, err := b.xc.Recv()
if err != nil {
return err
switch m.(type) {
case xmpp.AvatarData:
b.avatarAvailability[v.From] = false
continue
default:
return err
}
}
switch v := m.(type) {