mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
fixing race condition of read marker
This commit is contained in:
parent
c0a0c46a95
commit
58ac9342b5
@ -168,7 +168,6 @@ export class FocusModule implements Focus {
|
||||
} else {
|
||||
this.loadMore = false;
|
||||
}
|
||||
await this.markRead();
|
||||
this.emitTopics();
|
||||
} catch (err) {
|
||||
this.log.warn(err);
|
||||
@ -213,7 +212,6 @@ export class FocusModule implements Focus {
|
||||
this.nextRevision = null;
|
||||
}
|
||||
|
||||
await this.markRead();
|
||||
this.emitTopics();
|
||||
this.log.info(`topic revision: ${nextRev}`);
|
||||
} catch (err) {
|
||||
@ -244,6 +242,7 @@ export class FocusModule implements Focus {
|
||||
}
|
||||
}
|
||||
this.syncing = false;
|
||||
await this.markRead();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user