Skip to content

Commit

Permalink
Merge pull request #1746 from elusive-code/master
Browse files Browse the repository at this point in the history
Fix for regression caused by 3372263
  • Loading branch information
jfarcand committed Oct 22, 2014
2 parents 019637d + bf3b28b commit b25abd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ public Broadcaster addAtmosphereResource(AtmosphereResource r) {

if (duplicate) {
AtmosphereResourceImpl dup = (AtmosphereResourceImpl) config.resourcesFactory().find(r.uuid());
if (dup != null && dup.hashCode() != r.hashCode()) {
if (dup != null && dup != r) {
logger.warn("Duplicate resource {}. Could be caused by a dead connection not detected by your server. Replacing the old one with the fresh one", r.uuid());
AtmosphereResourceImpl.class.cast(dup).dirtyClose();
} else {
Expand Down

0 comments on commit b25abd6

Please sign in to comment.