From e05faf77c8702b5f6de9a3587a7a59ee0d154ffc Mon Sep 17 00:00:00 2001 From: nevafuse Date: Sat, 12 Nov 2016 20:14:53 -0500 Subject: [PATCH] keep restored file if saving periodically Signed-off-by: nevafuse --- .../org/eclipse/jetty/server/session/HashSessionManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/session/HashSessionManager.java b/jetty-server/src/main/java/org/eclipse/jetty/server/session/HashSessionManager.java index 68e5227e947..0816f1452a4 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/session/HashSessionManager.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/session/HashSessionManager.java @@ -612,9 +612,9 @@ public class HashSessionManager extends AbstractSessionManager __log.debug(error); } } - else + else if (_savePeriodMs == 0) { - // delete successfully restored file + // delete successfully restored file if not saving periodically file.delete(); } }