mirror of
https://github.com/corda/corda.git
synced 2025-06-06 01:11:45 +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() {
|
fun destroy() {
|
||||||
if (!isDestroyed) {
|
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()
|
webServer.close()
|
||||||
explorer.close()
|
explorer.close()
|
||||||
viewer.close()
|
viewer.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user