From d6514f75242000bcad4a040bf7046091fa730d31 Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Fri, 10 Feb 2017 09:27:38 +0000 Subject: [PATCH] Allow Node Explorer to be relaunched. --- .../src/main/kotlin/net/corda/demobench/model/Explorer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/model/Explorer.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/model/Explorer.kt index 0c13db4d50..3bef43206d 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/model/Explorer.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/model/Explorer.kt @@ -12,7 +12,7 @@ class Explorer(val explorerController: ExplorerController) : AutoCloseable { fun open(config: NodeConfig, onExit: (NodeConfig) -> Unit) { val explorerDir = config.explorerDir.toFile() - if (!explorerDir.mkdirs()) { + if (!explorerDir.isDirectory() && !explorerDir.mkdirs()) { log.warn("Failed to create working directory '{}'", explorerDir.getAbsolutePath()) onExit(config) return