mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Make sure we close our streams!
This commit is contained in:
@@ -134,6 +134,10 @@ public class LanLink extends BaseLink {
|
|||||||
if (callback != null) {
|
if (callback != null) {
|
||||||
callback.sendFailure(e);
|
callback.sendFailure(e);
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
//Make sure we close the payload stream, if any
|
||||||
|
InputStream stream = np.getPayload();
|
||||||
|
try { stream.close(); } catch (Exception e) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user