aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/xmppclient_listener.lua2
-rw-r--r--net/xmppserver_listener.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua
index a7da6d22..75726972 100644
--- a/net/xmppclient_listener.lua
+++ b/net/xmppclient_listener.lua
@@ -66,7 +66,7 @@ local function handleerr(err) log("error", "Traceback[c2s]: %s: %s", tostring(er
function stream_callbacks.handlestanza(session, stanza)
stanza = session.filter("stanzas/in", stanza);
if stanza then
- xpcall(function () core_process_stanza(session, stanza) end, handleerr);
+ return xpcall(function () return core_process_stanza(session, stanza) end, handleerr);
end
end
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua
index d4283d9b..05e14a0f 100644
--- a/net/xmppserver_listener.lua
+++ b/net/xmppserver_listener.lua
@@ -55,7 +55,7 @@ function stream_callbacks.handlestanza(session, stanza)
end
stanza = session.filter("stanzas/in", stanza);
if stanza then
- xpcall(function () core_process_stanza(session, stanza) end, handleerr);
+ return xpcall(function () return core_process_stanza(session, stanza) end, handleerr);
end
end