chore: fix issue where application deinit was called twice
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user