Navigation Menu

Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't let a failed SelectorTask kill the selector thread.
  • Loading branch information
kohsuke committed Jun 9, 2014
1 parent 4bb086e commit 4228cf8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/jenkinsci/remoting/nio/NioChannelHub.java
Expand Up @@ -471,7 +471,12 @@ public void run() {
while (true) {
Callable<Void, IOException> t = selectorTasks.poll();
if (t==null) break;
t.call();
try {
t.call();
} catch (IOException e) {
LOGGER.log(WARNING, "Failed to process selectorTasks", e);
// but keep on at the next task
}
}

thread.setName("NioChannelHub keys="+selector.keys().size()+" gen="+(gen++)+": "+oldName);
Expand Down

0 comments on commit 4228cf8

Please sign in to comment.