Fix AbstractConnection.readContent, see https://sourceforge.net/p/davmail/bugs/538/

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2176 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-09-14 13:57:56 +00:00
parent 8d961cda0a
commit bb70c7f092
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public class AbstractConnection extends Thread {
int startIndex = 0; int startIndex = 0;
int count = 0; int count = 0;
while (count >= 0 && startIndex < byteSize) { while (count >= 0 && startIndex < byteSize) {
count = in.read(buffer, startIndex, byteSize - startIndex); count = read(buffer, startIndex, byteSize - startIndex);
startIndex += count; startIndex += count;
} }
if (startIndex < byteSize) { if (startIndex < byteSize) {