chore: fix issue where application deinit was called twice

This commit is contained in:
Mo
2023-08-24 08:48:56 -05:00
parent 3dd9504a85
commit a5bb112df5
3 changed files with 3 additions and 7 deletions

View File

@@ -177,12 +177,12 @@ export class WebApplication extends SNApplication implements WebApplicationInter
}
override deinit(mode: DeinitMode, source: DeinitSource): void {
super.deinit(mode, source)
if (!this.isNativeMobileWeb()) {
this.webOrDesktopDevice.removeApplication(this)
}
super.deinit(mode, source)
for (const disposer of this.disposers) {
disposer()
}