mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
terminal: catch unhandled exception from termination listener
GitOrigin-RevId: 057cb76100e0cd794a701ae5066f069ee1ac6db2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
95213f24d5
commit
4fec3cbead
@@ -64,7 +64,12 @@ class BlockTerminalSession(settings: JBTerminalSystemSettingsProviderBase,
|
||||
finally {
|
||||
ttyConnector.closeSafely()
|
||||
for (terminationListener in terminationListeners) {
|
||||
terminationListener.run()
|
||||
try {
|
||||
terminationListener.run()
|
||||
}
|
||||
catch (t: Throwable) {
|
||||
thisLogger().error("Unhandled exception in termination listener", t)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user