Replace deprecated "gpu-process-crashed" with "child-process-gone" (#2471)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
||||||
// See LICENSE.txt for license information.
|
// See LICENSE.txt for license information.
|
||||||
|
|
||||||
import {app, BrowserWindow, Event, dialog, WebContents, Certificate} from 'electron';
|
import {app, BrowserWindow, Event, dialog, WebContents, Certificate, Details} from 'electron';
|
||||||
import log from 'electron-log';
|
import log from 'electron-log';
|
||||||
|
|
||||||
import urlUtils from 'common/utils/url';
|
import urlUtils from 'common/utils/url';
|
||||||
@@ -178,6 +178,6 @@ export async function handleAppCertificateError(event: Event, webContents: WebCo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function handleAppGPUProcessCrashed(event: Event, killed: boolean) {
|
export function handleChildProcessGone(event: Event, details: Details) {
|
||||||
log.error(`The GPU process has crashed (killed = ${killed})`);
|
log.error('"child-process-gone" The child process has crashed. Details: ', details);
|
||||||
}
|
}
|
||||||
|
@@ -63,10 +63,10 @@ import {
|
|||||||
handleAppBeforeQuit,
|
handleAppBeforeQuit,
|
||||||
handleAppBrowserWindowCreated,
|
handleAppBrowserWindowCreated,
|
||||||
handleAppCertificateError,
|
handleAppCertificateError,
|
||||||
handleAppGPUProcessCrashed,
|
|
||||||
handleAppSecondInstance,
|
handleAppSecondInstance,
|
||||||
handleAppWillFinishLaunching,
|
handleAppWillFinishLaunching,
|
||||||
handleAppWindowAllClosed,
|
handleAppWindowAllClosed,
|
||||||
|
handleChildProcessGone,
|
||||||
} from './app';
|
} from './app';
|
||||||
import {handleConfigUpdate, handleDarkModeChange} from './config';
|
import {handleConfigUpdate, handleDarkModeChange} from './config';
|
||||||
import {
|
import {
|
||||||
@@ -183,7 +183,7 @@ function initializeAppEventListeners() {
|
|||||||
app.on('before-quit', handleAppBeforeQuit);
|
app.on('before-quit', handleAppBeforeQuit);
|
||||||
app.on('certificate-error', handleAppCertificateError);
|
app.on('certificate-error', handleAppCertificateError);
|
||||||
app.on('select-client-certificate', CertificateManager.handleSelectCertificate);
|
app.on('select-client-certificate', CertificateManager.handleSelectCertificate);
|
||||||
app.on('gpu-process-crashed', handleAppGPUProcessCrashed);
|
app.on('child-process-gone', handleChildProcessGone);
|
||||||
app.on('login', AuthManager.handleAppLogin);
|
app.on('login', AuthManager.handleAppLogin);
|
||||||
app.on('will-finish-launching', handleAppWillFinishLaunching);
|
app.on('will-finish-launching', handleAppWillFinishLaunching);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user