From 79bdbd4021659fd81b183d69e54eae04e90b3f2b Mon Sep 17 00:00:00 2001 From: "Rustam.Vishnyakov" Date: Tue, 9 Aug 2011 20:22:41 +0400 Subject: [PATCH] Even if we don't know the actual content size, we still want to show that something is going on --- platform/platform-api/src/com/intellij/util/net/NetUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/platform-api/src/com/intellij/util/net/NetUtils.java b/platform/platform-api/src/com/intellij/util/net/NetUtils.java index a2380bdc94a0..610b4b5d78eb 100644 --- a/platform/platform-api/src/com/intellij/util/net/NetUtils.java +++ b/platform/platform-api/src/com/intellij/util/net/NetUtils.java @@ -110,6 +110,7 @@ public class NetUtils { int expectedContentSize) throws IOException, ProcessCanceledException { if (indicator != null) { indicator.checkCanceled(); + if (expectedContentSize < 0) indicator.setIndeterminate(true); } final byte[] buffer = new byte[4 * 1024];