Commit a99853e0 authored by Petri Hintukainen's avatar Petri Hintukainen

Fix race

parent b8763d52
......@@ -33,12 +33,14 @@ public class ServiceContextFactoryImpl extends ServiceContextFactory {
synchronized (ServiceContextFactoryImpl.class) {
if (instance == null)
instance = new ServiceContextFactoryImpl();
return instance;
}
return instance;
}
public static void shutdown() {
instance = null;
synchronized (ServiceContextFactoryImpl.class) {
instance = null;
}
}
public ServiceContext createServiceContext()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment