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;