From ac67818d2853ed5763f9d48a38024c03401ad297 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 13 Jul 2016 06:22:11 +0200 Subject: [PATCH] App now always exits. --- .../de/fabianonline/telegram_backup/CommandLineController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/fabianonline/telegram_backup/CommandLineController.java b/src/main/java/de/fabianonline/telegram_backup/CommandLineController.java index 7108507..4cd8f74 100644 --- a/src/main/java/de/fabianonline/telegram_backup/CommandLineController.java +++ b/src/main/java/de/fabianonline/telegram_backup/CommandLineController.java @@ -162,8 +162,9 @@ public class CommandLineController { System.out.println("DAEMON mode requested - keeping running."); } else { client.close(); + System.out.println(); System.out.println("----- EXIT -----"); - System.out.println("If this program doesn't exit by itself, please press Ctrl-C now."); + System.exit(0); } } }