Closed silvanheller closed 1 year ago
Does this actually trigger the shutdown hook to close the API properly or does it just kill the process? Wouldn't it be cleaner to only register the shutdown hook when the CLI is not enabled and otherwise handle the shutdown mechanism as before?
I have tested this with the CLI enabled and it produces the log output from the shutdown hook, so it appears to be closed correctly as far as I can tell.
ok, good enough then I guess maybe a comment at that point would be nice to explicitly point this out, as it is not obvious (or at least is wasn't to me)
This PR fixes #349. It does not interfere with the aim of #345, as there is a while(true) loop if the CLI is not enabled.