Skip to content
Permalink
Browse files

[JENKINS-37566] - ProxyOutputStream: Add oid check as suggested by @s…

  • Loading branch information...
oleg-nenashev committed Nov 20, 2017
1 parent f5caca4 commit d620065439163b9d13708730f2eb93c0bfafcba0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/remoting/ProxyOutputStream.java
@@ -181,7 +181,7 @@ protected void finalize() throws Throwable {
super.finalize();
// if we haven't done so, release the exported object on the remote side.
// if the object is auto-unexported, the export entry could have already been removed.
if(channel!=null) {
if(channel != null && oid != -1) {
channel.send(new Unexport(channel.newIoId(),oid));
oid = -1;
}

0 comments on commit d620065

Please sign in to comment.
You can’t perform that action at this time.