From 94d6fdd3843dccd7ee1d6a46174e12e97dd91d29 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 15 Jan 2013 07:41:37 +0100 Subject: [PATCH] Moved from global /tmp/ to tmp/ in application home. --- lib/session.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/session.rb b/lib/session.rb index 4956fb41f..f4f2f98a1 100644 --- a/lib/session.rb +++ b/lib/session.rb @@ -1,7 +1,7 @@ require 'json' module Session - @path = '/tmp/websocket' + @path = Dir.pwd.to_s + '/tmp/websocket' @@user_threads = {} @@client_threads = {} @@ -92,6 +92,10 @@ module Session end def self.jobs + + # just make sure that spool path exists + FileUtils.mkpath @path + Thread.abort_on_exception = true while true client_ids = self.sessions