Skip to content

Commit

Permalink
Synchronize beanLatches
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesper Pedersen committed Jun 8, 2012
1 parent e549db9 commit 12027fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/com/github/fungal/impl/KernelImpl.java
Expand Up @@ -111,7 +111,8 @@ public class KernelImpl implements Kernel, KernelImplMBean
private ConcurrentMap<String, Set<String>> beanDependants = new ConcurrentHashMap<String, Set<String>>(1);

/** Bean latches */
private Map<String, List<CountDownLatch>> beanLatches = new HashMap<String, List<CountDownLatch>>(1);
private Map<String, List<CountDownLatch>> beanLatches =
Collections.synchronizedMap(new HashMap<String, List<CountDownLatch>>(1));

/** Bean deployments */
private AtomicInteger beanDeployments;
Expand Down

0 comments on commit 12027fb

Please sign in to comment.