Skip to content
Snippets Groups Projects
Commit f4420e83 authored by Rob Sherwood's avatar Rob Sherwood
Browse files

fixed NPE race condition in topologymgr

Needed to move threadpool reference into startup()
was in init()
parent f3491ee7
No related branches found
No related tags found
No related merge requests found
......@@ -327,12 +327,12 @@ IRoutingService, ILinkDiscoveryListener {
topologyAware = new ArrayList<ITopologyListener>();
ldUpdates = new LinkedBlockingQueue<LDUpdate>();
ScheduledExecutorService ses = threadPool.getScheduledExecutor();
newInstanceTask = new SingletonTask(ses, new NewInstanceWorker());
}
@Override
public void startUp(FloodlightModuleContext context) {
ScheduledExecutorService ses = threadPool.getScheduledExecutor();
newInstanceTask = new SingletonTask(ses, new NewInstanceWorker());
linkDiscovery.addListener(this);
newInstanceTask.reschedule(1, TimeUnit.MILLISECONDS);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment