mirror of
https://github.com/corda/corda.git
synced 2025-05-04 17:53:05 +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) {
|
fun open(config: NodeConfig, onExit: (NodeConfig) -> Unit) {
|
||||||
val explorerDir = config.explorerDir.toFile()
|
val explorerDir = config.explorerDir.toFile()
|
||||||
|
|
||||||
if (!explorerDir.mkdirs()) {
|
if (!explorerDir.isDirectory() && !explorerDir.mkdirs()) {
|
||||||
log.warn("Failed to create working directory '{}'", explorerDir.getAbsolutePath())
|
log.warn("Failed to create working directory '{}'", explorerDir.getAbsolutePath())
|
||||||
onExit(config)
|
onExit(config)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user