changed the order in which the interval services are stopped when watcher stops.

Original commit: elastic/x-pack-elasticsearch@8092a76aa4
This commit is contained in:
Martijn van Groningen 2015-04-15 09:05:06 +02:00
parent 13573d6c6d
commit 6309d2b5d3
1 changed files with 2 additions and 2 deletions

View File

@ -77,9 +77,9 @@ public class WatchService extends AbstractComponent {
public void stop() {
if (state.compareAndSet(State.STARTED, State.STOPPING)) {
logger.info("stopping watch service...");
watchLockService.stop();
executionService.stop();
triggerService.stop();
executionService.stop();
watchLockService.stop();
watchStore.stop();
state.set(State.STOPPED);
logger.info("watch service has stopped");