mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
Allow Node Explorer to be relaunched.
This commit is contained in:
parent
e966812105
commit
d6514f7524
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user