From 57a0c2f3e794971d21618eae864852d5f7dff64a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 17 Mar 2012 03:02:22 +0100 Subject: [PATCH] Stop updater when the connection is interrupted. --- src/de/todesbaum/jsite/application/UpdateChecker.java | 3 +++ 1 file changed, 3 insertions(+) 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]; -- 2.7.4