Skip to content

Commit

Permalink
being more defensive, in seeing JENKINS-7809 and the following stack …
Browse files Browse the repository at this point in the history
…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)
  • Loading branch information
kohsuke committed Feb 14, 2011
1 parent 63c356b commit 7b40e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remoting/src/main/java/hudson/remoting/PipeWindow.java
Expand Up @@ -139,7 +139,7 @@ public int get() throws InterruptedException {
if (available>0)
return available;

while (available==0) {
while (available<=0) {
wait();
}
}
Expand Down

0 comments on commit 7b40e2e

Please sign in to comment.