Skip to content
Browse files
[JENKINS-36871] Stop complaining when the channel is already closed
  • Loading branch information
stephenc committed Aug 3, 2016
1 parent d2504bc commit 0ef5cac61c33550a0de5e94703dd755b5bd179d7
Showing 1 changed file with 4 additions and 0 deletions.
@@ -1154,6 +1154,10 @@ public synchronized void close(Throwable diagnosis) throws IOException {

try {
send(new CloseCommand(this, diagnosis));
} catch (ChannelClosedException e) {
logger.log(Level.FINEST, "Channel is already closed", e);
} catch (IOException e) {
// send should only ever - worst case - throw an IOException so we'll just catch that and not Throwable
logger.log(Level.WARNING, "Having to terminate early", e);

0 comments on commit 0ef5cac

Please sign in to comment.