Fixed s2s manager's send queue to not store recieved stanza objects (as these can chnage after the send call)

Mon, 17 Nov 2008 18:53:13 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 17 Nov 2008 18:53:13 +0500
changeset 327
9439362caacc
parent 326
99a8317d1235
child 328
a1d25769970f

Fixed s2s manager's send queue to not store recieved stanza objects (as these can chnage after the send call)

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Mon Nov 17 13:51:47 2008 +0500
+++ b/core/s2smanager.lua	Mon Nov 17 18:53:13 2008 +0500
@@ -29,6 +29,7 @@
 module "s2smanager"
 
 function send_to_host(from_host, to_host, data)
+	if data.name then data = tostring(data); end
 	local host = hosts[from_host].s2sout[to_host];
 	if host then
 		-- We have a connection to this host already

mercurial