diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppclient_listener.lua | 5 | ||||
-rw-r--r-- | net/xmppserver_listener.lua | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index c2326a55..ce45ab92 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -126,10 +126,7 @@ function xmppclient.listener(conn, data) session_reset_stream(session); -- Initialise, ready for use - -- Debug version -- - --local function handleerr(err) print("Traceback:", err, debug.traceback()); end - --session.stanza_dispatch = function (stanza) return select(2, xpcall(function () return core_process_stanza(session, stanza); end, handleerr)); end - + session.stanza_dispatch = streamcallbacks.handlestanza; end if data then session.data(conn, data); diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index e4816b1e..ffc0b24b 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -129,9 +129,7 @@ function xmppserver.listener(conn, data) session_reset_stream(session); -- Initialise, ready for use - -- Debug version -- --- local function handleerr(err) print("Traceback:", err, debug.traceback()); end --- session.stanza_dispatch = function (stanza) return select(2, xpcall(function () return core_process_stanza(session, stanza); end, handleerr)); end + session.stanza_dispatch = streamcallbacks.handlestanza; end if data then session.data(conn, data); |