i2pRouter in WinLauncher can't be final because of REGISTER_UPP

This commit is contained in:
eyedeekay
2024-03-08 19:43:26 -05:00
parent 16fc4da41c
commit b8809bed47

View File

@@ -27,7 +27,7 @@ import net.i2p.util.Log;
public class WinLauncher extends WindowsAppUtil {
private final CopyConfigDir copyConfigDir;
WindowsUpdatePostProcessor wupp = null;
private final Router i2pRouter;
private Router i2pRouter;
private final Log logger;
public WinLauncher() {
i2pRouter = new Router(routerConfig(), System.getProperties());
@@ -187,8 +187,6 @@ public class WinLauncher extends WindowsAppUtil {
}
private final Runnable REGISTER_UPP = () -> {
if (i2pRouter == null)
return;
RouterContext ctx;
while ((ctx = i2pRouter.getContext()) == null) {
sleep(1000);