From: David ‘Bombe’ Roden Date: Sat, 17 Mar 2012 02:02:22 +0000 (+0100) Subject: Stop updater when the connection is interrupted. X-Git-Tag: 0.10-rc1~40 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=57a0c2f3e794971d21618eae864852d5f7dff64a;p=jSite.git Stop updater when the connection is interrupted. --- diff --git a/src/de/todesbaum/jsite/application/UpdateChecker.java b/src/de/todesbaum/jsite/application/UpdateChecker.java index 276a07b..5e61a76 100644 --- a/src/de/todesbaum/jsite/application/UpdateChecker.java +++ b/src/de/todesbaum/jsite/application/UpdateChecker.java @@ -215,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];