diff --git a/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java b/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java index c0701264..b39d9631 100644 --- a/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java +++ b/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java @@ -134,6 +134,10 @@ public class LanLink extends BaseLink { if (callback != null) { callback.sendFailure(e); } + } finally { + //Make sure we close the payload stream, if any + InputStream stream = np.getPayload(); + try { stream.close(); } catch (Exception e) { } } }