Software /
code /
prosody
Comparison
net/xmppclient_listener.lua @ 166:d4ee015fcee4
Backed out changeset 4adc53e03b4d (garbage collection)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Oct 2008 19:04:51 +0100 |
parent | 165:4adc53e03b4d |
child | 226:ba4711c4e8d2 |
comparison
equal
deleted
inserted
replaced
165:4adc53e03b4d | 166:d4ee015fcee4 |
---|---|
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) collectgarbage("collect"); collectgarbage("collect"); return core_process_stanza(session, stanza); end | 63 session.stanza_dispatch = function (stanza) 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 |