core: fix "Cannot send data if connection is not in "Connected" state"

This commit is contained in:
Abdullah Atta
2022-11-23 11:21:23 +05:00
committed by Abdullah Atta
parent 3ab6c4646c
commit 0c0dff3b28

View File

@@ -399,7 +399,7 @@ class Sync {
await this.connection.stop(); await this.connection.stop();
} }
await promiseTimeout(30000, () => this.connection.start()); await promiseTimeout(30000, this.connection.start());
} }
} catch (e) { } catch (e) {
this.logger.warn(e.message); this.logger.warn(e.message);