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