Hopefully catch errors

This commit is contained in:
Skylar Ittner 2023-09-05 21:50:26 -06:00
parent b9326e51e4
commit 5d3f6c226c

View File

@ -482,6 +482,7 @@ client.login("m.login.password", {"user": settings.matrixuser, "password": setti
} }
}); });
client.on("Room.timeline", function (event, room) { client.on("Room.timeline", function (event, room) {
try {
if (!initialsynccomplete) { if (!initialsynccomplete) {
return; // ignore anything while we were offline return; // ignore anything while we were offline
} }
@ -672,5 +673,8 @@ client.login("m.login.password", {"user": settings.matrixuser, "password": setti
} }
} }
} }
} catch (ex) {
logger.error("Error handling incoming event: " + ex);
}
}); });
}); });