Permalink
Browse files

[bugfix] Wrong timeout check: login tokens timed out immedately. They…

… should remain valid for a few seconds or the user gets logged out too quickly if requests come in with a delay.
  • Loading branch information...
wolfgangmm committed Jul 16, 2014
1 parent 0da9e23 commit b6c86a15bbe852006861e739feb4c4c777c70ab3
@@ -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 b6c86a1

Please sign in to comment.