Skip to content

Commit

Permalink
makes latch volatile. (apache#7448)
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy committed Mar 26, 2021
1 parent 057189e commit 453e0ca
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -292,7 +292,7 @@ protected boolean isMatch(URL subscribeUrl, URL providerUrl) {
private class RegistryChildListenerImpl implements ChildListener {
private RegistryNotifier notifier;
private long lastExecuteTime;
private CountDownLatch latch;
private volatile CountDownLatch latch;

public RegistryChildListenerImpl(URL consumerUrl, String path, NotifyListener listener, CountDownLatch latch) {
this.latch = latch;
Expand Down

0 comments on commit 453e0ca

Please sign in to comment.