1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 16:56:16 +00:00

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

View File

@ -143,6 +143,8 @@ class CommandLineController {
} catch (e: Exception) { } catch (e: Exception) {
e.printStackTrace() e.printStackTrace()
logger.error("Exception caught!", e) 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 { } finally {
if (CommandLineOptions.cmd_daemon) { if (CommandLineOptions.cmd_daemon) {
handler.activate() handler.activate()