diff --git a/bundles/binding/org.openhab.binding.fritzbox/src/main/java/org/openhab/binding/fritzbox/internal/FritzboxBinding.java b/bundles/binding/org.openhab.binding.fritzbox/src/main/java/org/openhab/binding/fritzbox/internal/FritzboxBinding.java index 3496d538fde..3a95e2ac864 100644 --- a/bundles/binding/org.openhab.binding.fritzbox/src/main/java/org/openhab/binding/fritzbox/internal/FritzboxBinding.java +++ b/bundles/binding/org.openhab.binding.fritzbox/src/main/java/org/openhab/binding/fritzbox/internal/FritzboxBinding.java @@ -59,6 +59,7 @@ * and outgoing calls, as well as for connections and disconnections. * * @author Kai Kreuzer + * @author Jan N. Klug * @since 0.7.0 */ public class FritzboxBinding extends @@ -451,7 +452,11 @@ public void run() { } } } catch (IOException e) { - logger.error("Lost connection to FritzBox", e); + if (interrupted) { + logger.info("Lost connection to Fritzbox because of interrupt"); + } else { + logger.error("Lost connection to FritzBox", e); + } break; } } @@ -473,7 +478,7 @@ private MonitorEvent parseMonitorEvent(String line) { event.timestamp = sections[0]; event.eventType = sections[1]; event.connectionId = sections[2]; - + if (event.eventType.equals("RING")) { event.externalNo = sections[3]; event.internalNo = sections[4]; @@ -525,7 +530,6 @@ private void handleEventType(MonitorEvent event, String bindingType) { .getItemNamesForType(bindingType)) { Class itemType = provider .getItemType(itemName); - org.openhab.core.types.State state = null; if (event.eventType.equals("DISCONNECT")) { state = itemType.isAssignableFrom(SwitchItem.class) ? OnOffType.OFF