Skip to content
Permalink
Browse files
[FIX JENKINS-17757] IllegalStateException: Timer already cancelled fr…
…om NodesCollector.scheduleCollectNow
  • Loading branch information
evernat authored and evernat committed Jul 17, 2013
1 parent 6ea3a1e commit c60ffbdc94a632610e76a79b238683f74edadfa9
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 c60ffbd

Please sign in to comment.