Skip to content

Commit 4384b29

Browse files
committed
Attempt to fix realtime doc dispose
1 parent d5d49b8 commit 4384b29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SIL.XForge.Scripture/ClientApp/src/xforge-common/models/realtime-doc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,14 @@ export abstract class RealtimeDoc<T = any, Ops = any, P = any> {
246246
*/
247247
async dispose(): Promise<void> {
248248
this.isDisposing$.next(true);
249+
await this.realtimeService.onLocalDocDispose(this);
249250
if (this.subscribePromise != null) {
250251
await this.subscribePromise;
251252
}
252253
this.updateOfflineDataSub.unsubscribe();
253254
this.onDeleteSub.unsubscribe();
254255
await this.adapter.destroy();
255256
this.subscribedState = false;
256-
await this.realtimeService.onLocalDocDispose(this);
257257
this.isDisposing$.complete();
258258
}
259259

0 commit comments

Comments
 (0)