mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
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:
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?
|
||||
|
||||
Reference in new issue
Block a user