net/xmppclient_listener.lua

changeset 165
4adc53e03b4d
parent 148
4c0dcd245d34
child 166
d4ee015fcee4
equal deleted inserted replaced
164:8dc1faa5b1df 165:4adc53e03b4d
58 session_reset_stream(session); -- Initialise, ready for use 58 session_reset_stream(session); -- Initialise, ready for use
59 59
60 -- TODO: Below function should be session,stanza - and xmlhandlers should use :method() notation to call, 60 -- TODO: Below function should be session,stanza - and xmlhandlers should use :method() notation to call,
61 -- this will avoid the useless indirection we have atm 61 -- this will avoid the useless indirection we have atm
62 -- (I'm on a mission, no time to fix now) 62 -- (I'm on a mission, no time to fix now)
63 session.stanza_dispatch = function (stanza) return core_process_stanza(session, stanza); end 63 session.stanza_dispatch = function (stanza) collectgarbage("collect"); collectgarbage("collect"); return core_process_stanza(session, stanza); end
64 64
65 end 65 end
66 if data then 66 if data then
67 session.data(conn, data); 67 session.data(conn, data);
68 end 68 end

mercurial