finalize() {
console.log('WebApplication : finalize');
+ this.flushData();
+ this.windowList.forEach((window) => window.removeAllListeners());
+ }
+
+ quit() {
+ console.log('WebApplication : quit');
+ addonManager.emit('lcQuit', this.mainWindow.id);
if (wrt.tv) {
this.inspectorSrc = '';
wrt.tv.cancelDialogs(this.mainWindow.webContents);
}
- this.flushData();
if (this.debugPort) {
console.log('stop inspector server');
this.debugPort = 0;
wrt.stopInspectorServer();
}
- this.windowList.forEach((window) => window.removeAllListeners());
- }
-
- quit() {
- console.log('WebApplication : quit');
- addonManager.emit('lcQuit', this.mainWindow.id);
this.inQuit = true;
if (!this.suspended)
this.suspend();