From 755a47d6f2d364d8d19c9c64196d19a619fa8e2f Mon Sep 17 00:00:00 2001 From: idk Date: Thu, 1 Jul 2021 20:05:21 -0400 Subject: [PATCH] Make WinLauncher extend WindowsUpdatePostProcessor --- java/net/i2p/router/WinLauncher.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/java/net/i2p/router/WinLauncher.java b/java/net/i2p/router/WinLauncher.java index c69aaa3..b38cb8b 100644 --- a/java/net/i2p/router/WinLauncher.java +++ b/java/net/i2p/router/WinLauncher.java @@ -22,7 +22,6 @@ import static net.i2p.update.UpdateType.*; * router.pid - the pid of the java process. */ public class WinLauncher extends WindowsUpdatePostProcessor { - WindowsUpdatePostProcessor wupp = new WindowsUpdatePostProcessor(); public void main(String[] args) throws Exception { File programs = selectProgramFile(); @@ -44,8 +43,8 @@ public class WinLauncher extends WindowsUpdatePostProcessor { UpdateManager upmgr = updateManagerClient(); if (upmgr != null) { - upmgr.register(this.wupp, ROUTER_SIGNED_SU3, 6); - upmgr.register(this.wupp, ROUTER_DEV_SU3, 6); + upmgr.register(this, ROUTER_SIGNED_SU3, 6); + upmgr.register(this, ROUTER_DEV_SU3, 6); }else{ System.out.println("\t unable to register updates"); }