File tree 1 file changed +1
-9
lines changed
src/main/java/com/orangefunction/tomcat/redissessions
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -422,10 +422,7 @@ public Session findSession(String id) throws IOException {
422
422
RedisSession session = null ;
423
423
424
424
if (null == id ) {
425
- currentSessionIsPersisted .set (false );
426
- currentSession .set (null );
427
- currentSessionSerializationMetadata .set (null );
428
- currentSessionId .set (null );
425
+ return null ;
429
426
} else if (id .equals (currentSessionId .get ())) {
430
427
session = currentSession .get ();
431
428
} else {
@@ -437,11 +434,6 @@ public Session findSession(String id) throws IOException {
437
434
currentSessionSerializationMetadata .set (container .metadata );
438
435
currentSessionIsPersisted .set (true );
439
436
currentSessionId .set (id );
440
- } else {
441
- currentSessionIsPersisted .set (false );
442
- currentSession .set (null );
443
- currentSessionSerializationMetadata .set (null );
444
- currentSessionId .set (null );
445
437
}
446
438
}
447
439
You can’t perform that action at this time.
0 commit comments