Comparison

core/s2smanager.lua @ 6663:d3023dd07cb6

portmanager, s2smanager, sessionmanager, stanza_router, storagemanager, usermanager, util.xml: Add luacheck annotations
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2015 19:20:07 +0100
parent 5776:bd0ff8ae98a8
child 6692:93eefa92527d
comparison
equal deleted inserted replaced
6662:5ef319efedba 6663:d3023dd07cb6
47 session.log("debug", "Attempt to open stream on resting session"); 47 session.log("debug", "Attempt to open stream on resting session");
48 end; 48 end;
49 close = function (session) 49 close = function (session)
50 session.log("debug", "Attempt to close already-closed session"); 50 session.log("debug", "Attempt to close already-closed session");
51 end; 51 end;
52 filter = function (type, data) return data; end; 52 filter = function (type, data) return data; end; --luacheck: ignore 212/type
53 }; resting_session.__index = resting_session; 53 }; resting_session.__index = resting_session;
54 54
55 function retire_session(session, reason) 55 function retire_session(session, reason)
56 local log = session.log or log; 56 local log = session.log or log; --luacheck: ignore 431/log
57 for k in pairs(session) do 57 for k in pairs(session) do
58 if k ~= "log" and k ~= "id" and k ~= "conn" then 58 if k ~= "log" and k ~= "id" and k ~= "conn" then
59 session[k] = nil; 59 session[k] = nil;
60 end 60 end
61 end 61 end