05nelsonm/kmp-tor

Irrecoverable state on start failure

05nelsonm opened this issue · 0 comments

If start or restart fails, the temporary command queue should be destroyed. Currently, only a restart failure will call lifecycle.destroy if it is present (A service).

I think the simplest solution would be to add a invokeOnCompletion handle whereby upon start/restart failure, if the actionStack is empty, to enqueue StopDaemon so the processor loops again and shuts down.