Software /
code /
prosody
Comparison
main.lua @ 34:fd693ef5d978
Fixed: Session data was never removed from sessions list
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 01 Oct 2008 18:47:07 +0500 |
parent | 33:091f91a1f67a |
child | 36:62998e5319e3 |
comparison
equal
deleted
inserted
replaced
33:091f91a1f67a | 34:fd693ef5d978 |
---|---|
158 --log("info", "core", "Client disconnected, connection closed"); | 158 --log("info", "core", "Client disconnected, connection closed"); |
159 end | 159 end |
160 | 160 |
161 function disconnect(conn, err) | 161 function disconnect(conn, err) |
162 sessions[conn].disconnect(err); | 162 sessions[conn].disconnect(err); |
163 sessions[conn] = nil; | |
163 end | 164 end |
164 | 165 |
165 modulemanager.loadall(); | 166 modulemanager.loadall(); |
166 | 167 |
167 setmetatable(_G, { __index = function (t, k) print("WARNING: ATTEMPT TO READ A NIL GLOBAL!!!", k); error("Attempt to read a non-existent global. Naughty boy.", 2); end, __newindex = function (t, k, v) print("ATTEMPT TO SET A GLOBAL!!!!", tostring(k).." = "..tostring(v)); error("Attempt to set a global. Naughty boy.", 2); end }) --]][][[]][]; | 168 setmetatable(_G, { __index = function (t, k) print("WARNING: ATTEMPT TO READ A NIL GLOBAL!!!", k); error("Attempt to read a non-existent global. Naughty boy.", 2); end, __newindex = function (t, k, v) print("ATTEMPT TO SET A GLOBAL!!!!", tostring(k).." = "..tostring(v)); error("Attempt to set a global. Naughty boy.", 2); end }) --]][][[]][]; |