- Making sure the executor service is available before the loadconfig
gets called, just in case of some race condition
Change-Id: Ib1d84c33536a68806d281d23855a6c0a5be2dd23
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
// Initialize graceful stop flag
stopping = false;
+ // Allocate the executor service
+ this.executor = Executors.newSingleThreadExecutor();
+
// Start event handler thread
frmEventHandler.start();
if (staticFlows.isEmpty()) {
loadFlowConfiguration();
}
-
- // Allocate the executor service
- this.executor = Executors.newSingleThreadExecutor();
}
/**