Skip to content
Permalink
Browse files
[FIX JENKINS-17757] IllegalStateException: Timer already cancelled fr…
…om NodesCollector.scheduleCollectNow
  • Loading branch information
evernat committed Jul 17, 2013
1 parent 7ae090d commit cb66c467903706df63ca07af21fc1fb5f50e1e66
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/main/java/org/jvnet/hudson/plugins/monitoring/NodesListener.java
@@ -48,7 +48,12 @@ public NodesListener(NodesCollector nodesCollector) {
@Override
public void onOnline(Computer c, TaskListener listener) throws IOException,
InterruptedException {
nodesCollector.scheduleCollectNow();
try {
nodesCollector.scheduleCollectNow();
} catch (final IllegalStateException e) {
// if timer already canceled, do nothing
// [JENKINS-17757] IllegalStateException: Timer already cancelled from NodesCollector.scheduleCollectNow
}
super.onOnline(c, listener);
}

0 comments on commit cb66c46

Please sign in to comment.