Skip to content

Commit

Permalink
ATS-23
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Müller authored and Matthias Müller committed Apr 3, 2020
1 parent af8c54f commit cb966e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/appng/tomcat/session/mongo/MongoStore.java
Expand Up @@ -366,6 +366,9 @@ private DBObject getMongoSession(String id) {
mongoSession = this.collection.findOne(sessionQuery);
} else {
mongoSession = this.collection.findOne(sessionQuery);
if (null == mongoSession) {
return null;
}
while (waited < maxWaitTime && mongoSession.get(HOST_PROPERTY) != null) {
info("Session %s is still used by host %s, waiting %sms.", id, mongoSession.get(HOST_PROPERTY),
waitTime);
Expand Down

0 comments on commit cb966e8

Please sign in to comment.