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:
Chris Rankin 2017-04-25 10:41:32 +01:00 committed by GitHub
parent f715ab39a2
commit 35f6de9c50

View File

@ -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()