Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

fix java.io.EOFException #149

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/java/com/android/volley/toolbox/BasicNetwork.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,11 @@ private byte[] entityToBytes(HttpEntity entity) throws IOException, ServerError
VolleyLog.v("Error occured when calling consumingContent");
}
mPool.returnBuf(buffer);
bytes.close();
try {
bytes.close();
}catch (IOException e){
VolleyLog.v("Error occured when closing PoolingByteArrayOutputStream");
}
}
}

Expand Down