Skip to content

Commit

Permalink
Update OnlineWebSessionManager.java
Browse files Browse the repository at this point in the history
因为每次load出来的数据都会清空,所以,此处永远只load第一页的数据即可,最后load出来没有数据,page.hasContent()会为空,跳出循环
  • Loading branch information
apei830 committed Dec 23, 2013
1 parent eb361a9 commit 7e74af9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void validateSessions() {
log.error("batch delete db session error.", e);
}
}
pageRequest = new PageRequest((pageRequest.getPageNumber() + 1) * pageRequest.getPageSize(), pageRequest.getPageSize());
pageRequest = new PageRequest(0, pageRequest.getPageSize());
page = userOnlineService.findExpiredUserOnlineList(expiredDate, pageRequest);
}

Expand Down

0 comments on commit 7e74af9

Please sign in to comment.