Software /
code /
prosody
Comparison
net/xmppserver_listener.lua @ 3345:8520cd88b84c
xmpp{client,server}_listener: Convert some calls to tail calls for efficiency
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 09 Jul 2010 13:28:41 +0100 |
parent | 3333:e6bb6bc4cfbe |
child | 3634:0d6b57edb7bd |
comparison
equal
deleted
inserted
replaced
3344:b16f842b7525 | 3345:8520cd88b84c |
---|---|
53 if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client | 53 if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client |
54 stanza.attr.xmlns = nil; | 54 stanza.attr.xmlns = nil; |
55 end | 55 end |
56 stanza = session.filter("stanzas/in", stanza); | 56 stanza = session.filter("stanzas/in", stanza); |
57 if stanza then | 57 if stanza then |
58 xpcall(function () core_process_stanza(session, stanza) end, handleerr); | 58 return xpcall(function () return core_process_stanza(session, stanza) end, handleerr); |
59 end | 59 end |
60 end | 60 end |
61 | 61 |
62 local connlisteners_register = require "net.connlisteners".register; | 62 local connlisteners_register = require "net.connlisteners".register; |
63 | 63 |