core: do not run sync before connecting sse

This commit is contained in:
Abdullah Atta
2024-08-20 15:37:56 +05:00
committed by Abdullah Atta
parent 84d68ca67b
commit f2f8d81b98

View File

@@ -349,8 +349,6 @@ class Database {
*/
async connectSSE(args?: { force: boolean }) {
await this.sseMutex.runExclusive(async () => {
this.eventManager.publish(EVENTS.databaseSyncRequested, true, false);
const forceReconnect = args && args.force;
const EventSource = this.options.eventsource;
if (