There was an error while loading. Please reload this page.
1 parent 8580ae1 commit bc89931Copy full SHA for bc89931
1 file changed
java/server/src/org/openqa/selenium/grid/server/EventBusOptions.java
@@ -33,15 +33,18 @@ public EventBusOptions(Config config) {
33
}
34
35
public EventBus getEventBus() {
36
- if (bus == null) {
+ EventBus localBus = bus;
37
+ if (localBus == null) {
38
synchronized (this) {
39
- bus = createBus();
+ localBus = bus;
40
41
+ localBus = createBus();
42
+ bus = localBus;
43
44
45
46
- return bus;
47
+ return localBus;
48
49
50
private EventBus createBus() {
0 commit comments