Browse Source

Handle RECONNECTING and reduce initial sync

pull/10/head
Drew Short 4 years ago
parent
commit
cdac7609fd
  1. 9
      bot/bot.js

9
bot/bot.js

@ -30,6 +30,9 @@ class Bot {
case "SYNCING":
logger.debug("Syncing")
break;
case "RECONNECTING":
logger.debug("Reconnecting");
break;
default:
logger.error("Unexpected sync state: %s", state);
process.exit(1);
@ -50,11 +53,13 @@ class Bot {
return this;
}
connect() {
async connect() {
// logger.info("Initializing Crypto");
// await bot.client.initCrypto();
logger.info("Starting Matrix SDK Client");
this.client.startClient();
await this.client.startClient({
initialSyncLimit: 0
});
}
sendStatusStartup() {

Loading…
Cancel
Save