Skip to content

Commit

Permalink
check resource scope before retrieving request
Browse files Browse the repository at this point in the history
  • Loading branch information
nite23 committed Aug 15, 2012
1 parent 3cb91f8 commit 85e25b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public final synchronized List<Object> retrieveFromCache(final AtmosphereResourc

CachedMessage cm = retrieveLastMessage(r);
boolean isNew = false;
if (cm == null && r.getRequest().getAttribute(AtmosphereResourceImpl.PRE_SUSPEND) != null) {
if (cm == null && AtmosphereResourceImpl.class.cast(r).isInScope() && r.getRequest().getAttribute(AtmosphereResourceImpl.PRE_SUSPEND) != null) {
isNew = true;
}

Expand Down

1 comment on commit 85e25b7

@buildhive
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Atmosphere Framework » atmosphere #273 FAILURE
Looks like this commit caused a build failure
(what's this?)

Please sign in to comment.