Permalink
Browse files

Merge pull request #271 from wolfgangmm/develop

[bugfix] Wrong timeout check: login tokens timed out immedately.
  • Loading branch information...
2 parents 7f1b917 + b6c86a1 commit 8c50a643692d00cd08aa9b56403c28ba9e15eb6b @shabanovd shabanovd committed Jul 16, 2014
@@ -199,7 +199,7 @@ private void timeoutCheck() {
long now = System.currentTimeMillis();
for (Iterator<Map.Entry<String, Long>> i = invalidatedTokens.entrySet().iterator(); i.hasNext(); ) {
Map.Entry<String, Long> entry = i.next();
- if (entry.getValue() > now) {
+ if (entry.getValue() < now) {
i.remove();
}
}

0 comments on commit 8c50a64

Please sign in to comment.