core/sessionmanager.lua

changeset 532
c24471cadc2c
parent 531
724fd647dc56
child 563
099d8a102deb
equal deleted inserted replaced
531:724fd647dc56 532:c24471cadc2c
78 78
79 if not next(hosts[session.host].sessions[session.username].sessions) then 79 if not next(hosts[session.host].sessions[session.username].sessions) then
80 log("debug", "All resources of %s are now offline", session.username); 80 log("debug", "All resources of %s are now offline", session.username);
81 hosts[session.host].sessions[session.username] = nil; 81 hosts[session.host].sessions[session.username] = nil;
82 end 82 end
83 else
84 log("error", "host or session table didn't exist, please report this! Host: %s [%s] Sessions: %s [%s]",
85 tostring(hosts[session.host]), tostring(session.host),
86 tostring(hosts[session.host].sessions[session.username] ), tostring(session.username));
83 end 87 end
84 end 88 end
85 89
86 for k in pairs(session) do 90 for k in pairs(session) do
87 if k ~= "trace" then 91 if k ~= "trace" then

mercurial