From b7c9af803fe953354d4bd9de06e5a03259e1eb0d Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 7 Oct 2010 18:08:53 +0000 Subject: [PATCH] make sure the pipe writer always get terminated. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@35607 71c3de6d-444a-0410-be80-ed276b4c234a --- remoting/src/main/java/hudson/remoting/Channel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remoting/src/main/java/hudson/remoting/Channel.java b/remoting/src/main/java/hudson/remoting/Channel.java index bcab4eae0c..bffbe25c44 100644 --- a/remoting/src/main/java/hudson/remoting/Channel.java +++ b/remoting/src/main/java/hudson/remoting/Channel.java @@ -967,10 +967,11 @@ public class Channel implements VirtualChannel, IChannel { } } ois.close(); - pipeWriter.shutdown(); } catch (IOException e) { logger.log(Level.SEVERE, "I/O error in channel "+name,e); terminate(e); + } finally { + pipeWriter.shutdown(); } } } -- GitLab