[ONOS-6663] Shutdown executor in RestDeviceProvider

Change-Id: If45c0a513104a7cc4eae242f83e3785f30f2a7db
This commit is contained in:
Lukasz Ryba 2017-06-20 09:14:11 +02:00 committed by Thomas Vachuska
parent e5d9df0897
commit 4da35c5492

View File

@ -179,6 +179,7 @@ public class RestDeviceProvider extends AbstractProvider
providerService = null;
factories.forEach(cfgService::unregisterConfigFactory);
scheduledTask.cancel(true);
executor.shutdown();
log.info("Stopped");
}