Skip to content

Commit

Permalink
[JENKINS-37566] - ProxyOutputStream: Add oid check as suggested by @s…
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Nov 20, 2017
1 parent f5caca4 commit d620065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/remoting/ProxyOutputStream.java
Expand Up @@ -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;
}
Expand Down

0 comments on commit d620065

Please sign in to comment.