hope i have fixed that bug, where the "download $version" kept showing, while already having downloaded it

This commit is contained in:
dev
2009-04-21 20:17:07 +00:00
parent 311ec4eb54
commit e126233fbc
2 changed files with 14 additions and 2 deletions

View File

@ -25,7 +25,7 @@
// display all the time so we display the final failure message
out.print("<br />" + update.getStatus());
if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) {
} else {
} else if(!update.isDone()) {
long nonce = new java.util.Random().nextLong();
String prev = System.getProperty("net.i2p.router.web.UpdateHandler.nonce");
if (prev != null) System.setProperty("net.i2p.router.web.UpdateHandler.noncePrev", prev);