nullify the updater on stop

This commit is contained in:
kimchy 2010-07-14 08:55:57 +03:00
parent c4d6ccd07b
commit 2e2f22fbd6
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ public class RoutingService extends AbstractLifecycleComponent<RoutingService> i
@Override protected void doStop() throws ElasticSearchException {
if (scheduledRoutingTableFuture != null) {
scheduledRoutingTableFuture.cancel(true);
scheduledRoutingTableFuture = null;
}
clusterService.remove(this);
}