From 5980a39ea06c3124c1fbe230205b0722ec5a9e90 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 23 Oct 2014 21:41:32 +0200 Subject: [PATCH] Use api now to destroy invalid sessions. --- lib/sessions.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sessions.rb b/lib/sessions.rb index f1e4d236c..c4f89741c 100644 --- a/lib/sessions.rb +++ b/lib/sessions.rb @@ -142,7 +142,7 @@ returns destroy session - Sessions.destory?(client_id) + Sessions.destory(client_id) returns @@ -227,7 +227,7 @@ returns session_file = session_dir + '/session' data = nil if !File.exist? session_file - FileUtils.rm_rf session_dir + self.destory(client_id) puts "ERROR: missing session file for '#{client_id.to_s}', remove session." return end @@ -240,7 +240,7 @@ returns } rescue Exception => e puts e.inspect - FileUtils.rm_rf session_dir + self.destory(client_id) puts "ERROR: reading session file '#{session_file}', remove session." return end