CORDA-3593: exit the InteractiveShell on shutdown command

This commit is contained in:
Ryan Fowler 2020-02-17 11:08:09 +00:00
parent 84be738374
commit 9b5080251d

View File

@ -634,6 +634,10 @@ object InteractiveShell {
InputStreamSerializer.invokeContext = null
InputStreamDeserializer.closeAll()
}
if (cmd == "shutdown") {
out.println("Called 'shutdown' on the node.\nQuitting the shell now.").also { out.flush() }
onExit.invoke()
}
return result
}