Cancel if shutdownGracefullyAndRerun returns false

This commit is contained in:
idk
2021-07-01 20:22:37 -04:00
parent 008025d76f
commit 7dfd857b43

View File

@@ -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();