Hopefully catch errors
This commit is contained in:
parent
b9326e51e4
commit
5d3f6c226c
4
main.js
4
main.js
@ -482,6 +482,7 @@ client.login("m.login.password", {"user": settings.matrixuser, "password": setti
|
||||
}
|
||||
});
|
||||
client.on("Room.timeline", function (event, room) {
|
||||
try {
|
||||
if (!initialsynccomplete) {
|
||||
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);
|
||||
}
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user