mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 09:03:10 +01:00
Ignore invalid data received errors
This commit is contained in:
parent
3f13e13d36
commit
498c0e4130
1 changed files with 2 additions and 1 deletions
3
user.go
3
user.go
|
@ -25,6 +25,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/skip2/go-qrcode"
|
||||
log "maunium.net/go/maulogger/v2"
|
||||
|
||||
|
@ -344,7 +345,7 @@ func (user *User) updateLastConnectionIfNecessary() {
|
|||
}
|
||||
|
||||
func (user *User) HandleError(err error) {
|
||||
if err != whatsapp.ErrInvalidWsData {
|
||||
if errors.Cause(err) != whatsapp.ErrInvalidWsData {
|
||||
user.log.Errorln("WhatsApp error:", err)
|
||||
}
|
||||
var msg string
|
||||
|
|
Loading…
Reference in a new issue