1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00

Bug 530371: fix device disposed SWTException on shutdown

Change-Id: I2cb4bf5da4ce35d8b7da4a31d0fa2845c9587985
This commit is contained in:
Jonah Graham 2018-01-26 12:41:02 +00:00
parent b15619d4b1
commit ee784263c2

View file

@ -65,7 +65,7 @@ public class GdbFullCliConsole extends AbstractConsole implements IGDBDebuggerCo
PlatformUI.getWorkbench().getDisplay().asyncExec(() -> setName(newName));
} catch (SWTException e) {
// display may be disposed, so ignore the exception
if (e.code != SWT.ERROR_WIDGET_DISPOSED) {
if (e.code != SWT.ERROR_WIDGET_DISPOSED && e.code != SWT.ERROR_DEVICE_DISPOSED) {
throw e;
}
}