mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-23 01:06:17 +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) {
|
} 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user