X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fapplication%2FUpdateChecker.java;h=c49f166cf70dc12d89347faffafa9a0a9c494ae9;hb=953de352675a4ad91fe307d816a4ea7780c94274;hp=445421c7d907007bc2f9a062af09e6f884a45772;hpb=5af7e82a86fa1e64a1c8d34f303c3a393c6ecd87;p=jSite.git diff --git a/src/de/todesbaum/jsite/application/UpdateChecker.java b/src/de/todesbaum/jsite/application/UpdateChecker.java index 445421c..c49f166 100644 --- a/src/de/todesbaum/jsite/application/UpdateChecker.java +++ b/src/de/todesbaum/jsite/application/UpdateChecker.java @@ -1,6 +1,5 @@ /* - * jSite-remote - UpdateChecker.java - - * Copyright © 2008 David Roden + * jSite - UpdateChecker.java - Copyright © 2008–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,7 +51,7 @@ public class UpdateChecker implements Runnable { private static int counter = 0; /** The edition for the update check URL. */ - private static final int UPDATE_EDITION = 0; + private static final int UPDATE_EDITION = 17; /** The URL for update checks. */ private static final String UPDATE_KEY = "USK@e3myoFyp5avg6WYN16ImHri6J7Nj8980Fm~aQe4EX1U,QvbWT0ImE0TwLODTl7EoJx2NBnwDxTbLTE6zkB-eGPs,AQACAAE"; @@ -216,6 +215,9 @@ public class UpdateChecker implements Runnable { while (!stop) { Message message = client.readMessage(); logger.log(Level.FINEST, "Received message: " + message); + if (message == null) { + break; + } if ("GetFailed".equals(message.getName())) { if ("27".equals(message.get("code"))) { String editionString = message.get("redirecturi").split("/")[2];