From 6eceb229ebb54c10fa3f9bc88f1764fb34d637a2 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 27 Jul 2013 00:43:07 +0200 Subject: [PATCH] Improved error handling. --- lib/session.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/session.rb b/lib/session.rb index 3dc6a633b..df7416383 100644 --- a/lib/session.rb +++ b/lib/session.rb @@ -133,6 +133,7 @@ module Session def self.touch( client_id ) data = self.get(client_id) + return if !data path = @path + '/' + client_id.to_s data[:meta][:last_ping] = Time.new.to_i.to_s File.open( path + '/session', 'wb' ) { |file|