mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Make sure we close our streams!
This commit is contained in:
parent
aa94a61732
commit
e2081d3892
@ -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) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user