We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d8427 commit c620c37Copy full SHA for c620c37
java/src/org/openqa/selenium/manager/SeleniumManager.java
@@ -65,7 +65,7 @@ public class SeleniumManager {
65
private static final String WARN = "WARN";
66
private static final String DEBUG = "DEBUG";
67
68
- private static SeleniumManager manager;
+ private static volatile SeleniumManager manager;
69
70
private File binary;
71
@@ -90,7 +90,11 @@ private SeleniumManager() {
90
91
public static SeleniumManager getInstance() {
92
if (manager == null) {
93
- manager = new SeleniumManager();
+ synchronized (SeleniumManager.class) {
94
+ if (manager == null) {
95
+ manager = new SeleniumManager();
96
+ }
97
98
}
99
return manager;
100
0 commit comments