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:
@@ -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) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user