Moved from global /tmp/ to tmp/ in application home.

This commit is contained in:
Martin Edenhofer 2013-01-15 07:41:37 +01:00
parent 0d720910a4
commit 94d6fdd384

View file

@ -1,7 +1,7 @@
require 'json' require 'json'
module Session module Session
@path = '/tmp/websocket' @path = Dir.pwd.to_s + '/tmp/websocket'
@@user_threads = {} @@user_threads = {}
@@client_threads = {} @@client_threads = {}
@ -92,6 +92,10 @@ module Session
end end
def self.jobs def self.jobs
# just make sure that spool path exists
FileUtils.mkpath @path
Thread.abort_on_exception = true Thread.abort_on_exception = true
while true while true
client_ids = self.sessions client_ids = self.sessions