mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Ignore any unsubscribe exception when closing DemoBench tab. (#579)
E.g. the node may already have exited and closed the RPC session.
This commit is contained in:
parent
f715ab39a2
commit
35f6de9c50
@ -211,7 +211,10 @@ class NodeTerminalView : Fragment() {
|
||||
|
||||
fun destroy() {
|
||||
if (!isDestroyed) {
|
||||
subscriptions.forEach { it.unsubscribe() }
|
||||
subscriptions.forEach {
|
||||
// Don't allow any exceptions here to halt tab destruction.
|
||||
try { it.unsubscribe() } catch (e: Exception) {}
|
||||
}
|
||||
webServer.close()
|
||||
explorer.close()
|
||||
viewer.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user