diff --git a/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineController.kt b/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineController.kt index 4286ccd..332f25a 100644 --- a/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineController.kt +++ b/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineController.kt @@ -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()