No need to clear the scheduler when it is going to be shut down.

Original commit: elastic/x-pack-elasticsearch@5e8e4134ee
This commit is contained in:
Martijn van Groningen 2014-11-24 21:06:47 +01:00
parent 3c896c3d44
commit 53ef534567
1 changed files with 2 additions and 2 deletions

View File

@ -72,11 +72,11 @@ public class AlertScheduler extends AbstractComponent {
*/
public synchronized void stop() {
try {
Scheduler scheduler = this.scheduler;
if (scheduler != null) {
logger.info("Stopping scheduler...");
scheduler.clear();
scheduler.shutdown(true);
scheduler = null;
this.scheduler = null;
logger.info("Stopped scheduler");
}
} catch (SchedulerException se){