Improved error handling.

This commit is contained in:
Martin Edenhofer 2013-07-27 00:43:07 +02:00
parent 713d96c5e9
commit 6eceb229eb

View file

@ -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|