Don't start the daemon mode if an exception happened earlier.

This commit is contained in:
Fabian Schlenz 2018-03-05 06:36:47 +01:00
parent 82d6255144
commit f5431e805e
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,8 @@ class CommandLineController {
} catch (e: Exception) {
e.printStackTrace()
logger.error("Exception caught!", e)
// If we encountered an exception, we definitely don't want to start the daemon mode now.
CommandLineOptions.cmd_daemon = false
} finally {
if (CommandLineOptions.cmd_daemon) {
handler.activate()