diff --git a/remoting/src/main/java/hudson/remoting/Pipe.java b/remoting/src/main/java/hudson/remoting/Pipe.java index 5481f418b4fd1128b5eb9aadc74ace7d90a73e7f..019ffc8eafbcfc546a6284e8928ea9dea37f6e64 100644 --- a/remoting/src/main/java/hudson/remoting/Pipe.java +++ b/remoting/src/main/java/hudson/remoting/Pipe.java @@ -123,7 +123,7 @@ public final class Pipe implements Serializable { if(in!=null && out==null) { // remote will write to local PipedOutputStream pos = new PipedOutputStream((PipedInputStream)in); - int oid = Channel.current().export(pos,false); + int oid = Channel.current().export(pos,false); // this export is unexported in ProxyOutputStream.finalize() oos.writeBoolean(true); // marker oos.writeInt(oid); diff --git a/remoting/src/main/java/hudson/remoting/RemoteOutputStream.java b/remoting/src/main/java/hudson/remoting/RemoteOutputStream.java index 6d429dc17404248079390a2304b9bed61fd44471..e80272f797f7719689f3e47f856598e15c619982 100644 --- a/remoting/src/main/java/hudson/remoting/RemoteOutputStream.java +++ b/remoting/src/main/java/hudson/remoting/RemoteOutputStream.java @@ -77,7 +77,7 @@ public final class RemoteOutputStream extends OutputStream implements Serializab } private void writeObject(ObjectOutputStream oos) throws IOException { - int id = Channel.current().export(core,false); + int id = Channel.current().export(core,false); // this export is unexported in ProxyOutputStream.finalize() oos.writeInt(id); }