From 7dfd857b430ca3b1c2f1025ba3456dcaf5a92c09 Mon Sep 17 00:00:00 2001 From: idk Date: Thu, 1 Jul 2021 20:22:37 -0400 Subject: [PATCH] Cancel if shutdownGracefullyAndRerun returns false --- java/net/i2p/router/WindowsUpdatePostProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/net/i2p/router/WindowsUpdatePostProcessor.java b/java/net/i2p/router/WindowsUpdatePostProcessor.java index 1d9114a..eb0255a 100644 --- a/java/net/i2p/router/WindowsUpdatePostProcessor.java +++ b/java/net/i2p/router/WindowsUpdatePostProcessor.java @@ -19,7 +19,8 @@ public class WindowsUpdatePostProcessor implements UpdatePostProcessor { if (fileType == 6) { if (runUpdate(file)) { try { - if (shutdownGracefullyAndRerun()) { + if (!shutdownGracefullyAndRerun()) { + i2pRouter.cancelGracefulShutdown(); } } catch (InterruptedException ie) { i2pRouter.cancelGracefulShutdown();