Comparison

net/xmppclient_listener.lua @ 330:d9d4c1de16ce

s2s sessions can now be disconnected, with or without a stream error. Fixes #8
author Matthew Wild <mwild1@gmail.com>
date Tue, 18 Nov 2008 14:42:45 +0000
parent 329:3be63719428e
child 331:830fd67f9378
comparison
equal deleted inserted replaced
329:3be63719428e 330:d9d4c1de16ce
96 -- (I'm on a mission, no time to fix now) 96 -- (I'm on a mission, no time to fix now)
97 97
98 -- Debug version -- 98 -- Debug version --
99 local function handleerr(err) print("Traceback:", err, debug.traceback()); end 99 local function handleerr(err) print("Traceback:", err, debug.traceback()); end
100 session.stanza_dispatch = function (stanza) return select(2, xpcall(function () return core_process_stanza(session, stanza); end, handleerr)); end 100 session.stanza_dispatch = function (stanza) return select(2, xpcall(function () return core_process_stanza(session, stanza); end, handleerr)); end
101
102 -- session.stanza_dispatch = function (stanza) return core_process_stanza(session, stanza); end
103
104 end 101 end
105 if data then 102 if data then
106 session.data(conn, data); 103 session.data(conn, data);
107 end 104 end
108 end 105 end