signal about time to load more bytes when we have less than max_size_of_ bytes

This commit is contained in:
Maxim.Mossienko
2013-07-11 18:32:33 +02:00
parent 12d4eeee0d
commit 1cca4498e2
@@ -259,7 +259,7 @@ public class FileContentQueue {
synchronized (myProceedWithLoadingLock) {
myLoadedBytesInQueue -= result.getLength();
myProceedWithLoadingLock.notifyAll(); // we actually ask only content loading thread to proceed, so there should not be much difference with plain notify
if (myLoadedBytesInQueue < MAX_SIZE_OF_BYTES_IN_QUEUE) myProceedWithLoadingLock.notifyAll(); // we actually ask only content loading thread to proceed, so there should not be much difference with plain notify
}
return result;