Skip to content

Commit

Permalink
One more Final fixes for #950
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed May 6, 2013
1 parent eaf0fec commit f0f0769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,6 @@ public Action timedout(AtmosphereRequest req, AtmosphereResponse res)
}

protected boolean trackActiveRequest(AtmosphereRequest req) {
SessionTimeoutSupport.restoreTimeout(req);

if (trackActiveRequest) {
try {
long l = (Long) req.getAttribute(MAX_INACTIVE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public AtmosphereResource resume() {
asyncSupport.action(this);
}
} else {
logger.debug("Cannot resume an already resumed/cancelled request {}", this);
logger.trace("Cannot resume an already resumed/cancelled request {}", this);
return this;
}
} catch (Throwable t) {
Expand Down Expand Up @@ -842,7 +842,7 @@ public AtmosphereResourceImpl atmosphereHandler(AtmosphereHandler atmosphereHand
public void cancel() throws IOException {
if (!isCancelled.getAndSet(true)) {
logger.trace("Cancelling {}", uuid);
if (action.type() == Action.TYPE.SUSPEND) {
if (action.type() == Action.TYPE.CANCELLED) {
SessionTimeoutSupport.restoreTimeout(req);
}
action.type(Action.TYPE.RESUME);
Expand Down

0 comments on commit f0f0769

Please sign in to comment.