If not support multitasking, WRT can terminate app immediately,
unnessary to make a timer(0 second).
Change-Id: Ic6d32059a987747965ca0666750b67bbb1ca9019
Signed-off-by: liwei <wei90727.li@samsung.com>
addonManager.emit('lcSuspend', this.mainWindow.id);
this.windowList[this.windowList.length - 1].hide();
}
+ this.flushData();
if (this.isPausable()) {
this.windowList.forEach((window) => window.setEnabled(false));
if (!this.multitaskingSupport && !this.profileDelegate.isBackgroundLaunch()) {
- setTimeout(() => {
- console.log('multitasking is not supported; quitting app')
- app.quit();
- }, 0);
+ console.log('multitasking is not supported; quitting app');
+ app.quit();
}
}
- this.flushData();
}
resume() {