Skip to content

Commit 4d911b5

Browse files
committed
🐛 Atmosphere#2226 Avoid initializing AtmosphereResourceFactory multiple times
1 parent 3a9bf91 commit 4d911b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,6 +2983,7 @@ public AtmosphereResourceFactory atmosphereFactory() {
29832983
}
29842984

29852985
private AtmosphereFramework configureAtmosphereResourceFactory() {
2986+
if (arFactory != null) return this;
29862987
try {
29872988
arFactory = newClassInstance(AtmosphereResourceFactory.class, DefaultAtmosphereResourceFactory.class);
29882989
} catch (InstantiationException e) {

0 commit comments

Comments
 (0)