From fec0b34330a5f970baff6788958394096c895de9 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 21 Jun 2016 13:39:55 +0200 Subject: [PATCH] Socket can't be null --- src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java b/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java index f6629349..ce4dc7c9 100644 --- a/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java +++ b/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java @@ -67,20 +67,12 @@ public class LanLink extends BaseLink { @Override public void disconnect() { - Log.i("LanLink/Disconnect","socket:"+ socket.hashCode()); - - if (socket == null) { - Log.w("KDE/LanLink", "Not yet connected"); - return; - } - try { socket.close(); } catch (IOException e) { e.printStackTrace(); } - } //Returns the old socket