Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
make sure to close all streams
Browse files Browse the repository at this point in the history
  • Loading branch information
iamironrabbit committed Nov 21, 2018
1 parent b4480f7 commit ea4347f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,10 @@ else if (contentUri.getScheme().startsWith("http"))
throw new IOException("Error deleting " + contentUri);
}
}

if (info.stream != null)
info.stream.close();

} catch (Exception e) {
// Toast.makeText(this, "Error sending file", Toast.LENGTH_LONG).show(); // TODO i18n
Log.e(ImApp.LOG_TAG, "error sending file", e);
Expand Down

0 comments on commit ea4347f

Please sign in to comment.