Software /
code /
prosody
Changeset
426:3d8778059e90
Wrapped a core_process_stanza call in an xpcall call
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 26 Nov 2008 09:47:16 +0500 |
parents | 425:f3b65866192e |
children | 427:3288dd8d9669 429:b1d86f89fa27 |
files | net/xmppserver_listener.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/xmppserver_listener.lua Wed Nov 26 09:06:32 2008 +0500 +++ b/net/xmppserver_listener.lua Wed Nov 26 09:47:16 2008 +0500 @@ -130,7 +130,7 @@ -- FIXME: Below function should be session,stanza - and xmlhandlers should use :method() notation to call, -- this will avoid the useless indirection we have atm -- (I'm on a mission, no time to fix now) - session.stanza_dispatch = function (stanza) return core_process_stanza(session, stanza); end + session.stanza_dispatch = function (stanza) return select(2, xpcall(function () return core_process_stanza(session, stanza); end, handleerr)); end end connlisteners_register("xmppserver", xmppserver);