being more defensive, in seeing JENKINS-7809 and the following stack trace:

java.lang.NegativeArraySizeException
	at hudson.remoting.ProxyOutputStream$Chunk.<init>(ProxyOutputStream.java:175)
	at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:123)
	at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103)
This commit is contained in:
Kohsuke Kawaguchi committed 2011-02-14 10:18:22 -08:00
1 parent 63c356b190
commit 7b40e2e091
1 file changed
+1 -1
@@ -139,7 +139,7 @@ abstract class PipeWindow {
if (available>0)
return available;
while (available==0) {
while (available<=0) {
wait();
}
}