mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix assertion when get X11 error in new thread
This commit is contained in:
@@ -105,7 +105,7 @@ void OverrideLinuxAppDataPath() {
|
||||
}
|
||||
|
||||
int BrowserX11ErrorHandler(Display* d, XErrorEvent* error) {
|
||||
if (!g_in_x11_io_error_handler) {
|
||||
if (!g_in_x11_io_error_handler && base::ThreadTaskRunnerHandle::IsSet()) {
|
||||
base::ThreadTaskRunnerHandle::Get()->PostTask(
|
||||
FROM_HERE, base::Bind(&ui::LogErrorEventDescription, d, *error));
|
||||
}
|
||||
|
||||
@@ -184,7 +184,6 @@
|
||||
}, {
|
||||
'libraries': [
|
||||
'<@(libchromiumcontent_v8_libraries)',
|
||||
'<(libchromiumcontent_dir)/libc++.so',
|
||||
],
|
||||
}],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user