2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Make sure we close our streams!

This commit is contained in:
Albert Vaca
2015-09-06 11:26:30 -07:00
parent aa94a61732
commit e2081d3892

View File

@@ -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) { }
}
}