fixed a bug. when the ProxyOutputStream stream is already closed, calling write() will just cause a failure.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2214 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-02-15 14:11:10 +00:00
1 parent e83b388e6d
commit 274ea9c68e
1 file changed
+1 -1
@@ -53,7 +53,7 @@ final class ProxyOutputStream extends OutputStream {
// if we already have bytes to write, do so now.
if(tmp!=null) {
write(tmp.toByteArray());
channel.send(new Chunk(oid,tmp.toByteArray()));
tmp = null;
}
if(closed) // already marked closed?