From 1cca4498e23f8a4ce33daf72ffc418903fa67950 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Thu, 11 Jul 2013 18:31:34 +0200 Subject: [PATCH] signal about time to load more bytes when we have less than max_size_of_ bytes --- .../src/com/intellij/openapi/project/FileContentQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/project/FileContentQueue.java b/platform/platform-impl/src/com/intellij/openapi/project/FileContentQueue.java index 7c2fc2b3193e..81405feff49c 100644 --- a/platform/platform-impl/src/com/intellij/openapi/project/FileContentQueue.java +++ b/platform/platform-impl/src/com/intellij/openapi/project/FileContentQueue.java @@ -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;