Merge pull request #5974 from corda/CORDA-3593-shell-exits-after-shutdown-cmd

CORDA-3593: exit the InteractiveShell on shutdown command
This commit is contained in:
nargas-ritu 2020-02-18 11:10:54 +00:00 committed by GitHub
commit dc92786d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}