mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 08:46:15 +00:00
Don't start the daemon mode if an exception happened earlier.
This commit is contained in:
parent
82d6255144
commit
f5431e805e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user