From 04de1d024fa741990350a03d3e894ddfde775ec9 Mon Sep 17 00:00:00 2001 From: yugecin Date: Fri, 20 Jan 2017 00:25:32 +0100 Subject: [PATCH] fix not being able to shutdown when download is in progress --- src/yugecin/opsudance/core/DisplayContainer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yugecin/opsudance/core/DisplayContainer.java b/src/yugecin/opsudance/core/DisplayContainer.java index e8d84665..4385de56 100644 --- a/src/yugecin/opsudance/core/DisplayContainer.java +++ b/src/yugecin/opsudance/core/DisplayContainer.java @@ -249,11 +249,13 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen if (DownloadList.get().hasActiveDownloads()) { eventBus.post(new BubbleNotificationEvent(DownloadList.EXIT_CONFIRMATION, BubbleNotificationEvent.COMMONCOLOR_PURPLE)); exitRequested = false; + exitconfirmation = System.currentTimeMillis(); return false; } if (Updater.get().getStatus() == Updater.Status.UPDATE_DOWNLOADING) { eventBus.post(new BubbleNotificationEvent(Updater.EXIT_CONFIRMATION, BubbleNotificationEvent.COMMONCOLOR_PURPLE)); exitRequested = false; + exitconfirmation = System.currentTimeMillis(); return false; } return true;