Skip to content

Commit 92be75a

Browse files
fix: syncStatus of DBSyncManager is not updated correctly (#1842)
1 parent 60c697f commit 92be75a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package/src/utils/DBSyncManager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ export class DBSyncManager {
6363
this.client.on('connection.changed', async (event) => {
6464
if (event.online) {
6565
await this.syncAndExecutePendingTasks();
66+
this.syncStatus = true;
6667
this.listeners.forEach((l) => l(true));
6768
} else {
69+
this.syncStatus = false;
6870
this.listeners.forEach((l) => l(false));
6971
}
7072
});

0 commit comments

Comments
 (0)