mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 17:13:11 +01:00
Make not connected errors in sync handling non-fatal
This commit is contained in:
parent
402f482db3
commit
3f13e13d36
1 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,8 @@ func (puppet *Puppet) stopSyncing() {
|
||||||
|
|
||||||
func (puppet *Puppet) ProcessResponse(resp *mautrix.RespSync, since string) error {
|
func (puppet *Puppet) ProcessResponse(resp *mautrix.RespSync, since string) error {
|
||||||
if !puppet.customUser.Connected {
|
if !puppet.customUser.Connected {
|
||||||
return fmt.Errorf("custom user not connected to whatsapp")
|
puppet.log.Warnln("Skipping sync processing: custom user not connected to whatsapp")
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
for roomID, events := range resp.Rooms.Join {
|
for roomID, events := range resp.Rooms.Join {
|
||||||
portal := puppet.bridge.GetPortalByMXID(roomID)
|
portal := puppet.bridge.GetPortalByMXID(roomID)
|
||||||
|
|
Loading…
Reference in a new issue