Skip to content

Commit

Permalink
fix concurrent getAppConnManager bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xlinliu committed Jan 10, 2024
1 parent 1ab932d commit 8d9396c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public abstract class AbstractAppConnManager implements AppConnManager {
private AppConnResourceService appConnResourceService;
private AppConnRefreshThread appConnRefreshThread;

private static AppConnManager appConnManager;
private static volatile AppConnManager appConnManager;
private static boolean lazyLoad = false;

public static void setLazyLoad() {
Expand Down Expand Up @@ -87,8 +87,8 @@ public static AppConnManager getAppConnManager() {
LOGGER.info("The instance of AppConnManager is {}.", appConnManager.getClass().getName());
appConnManager.init();
}
return appConnManager;
}
return appConnManager;
}

@Override
Expand Down

0 comments on commit 8d9396c

Please sign in to comment.