Comparison

plugins/mod_bosh.lua @ 4769:c91bb217bf79

mod_bosh: Remove unused send_buffer variable
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Apr 2012 14:03:39 +0100
parent 4768:d232bd25ae58
child 4880:6d96e2e717c1
comparison
equal deleted inserted replaced
4768:d232bd25ae58 4769:c91bb217bf79
260 }; 260 };
261 sessions[sid] = session; 261 sessions[sid] = session;
262 262
263 session.log("debug", "BOSH session created for request from %s", session.ip); 263 session.log("debug", "BOSH session created for request from %s", session.ip);
264 log("info", "New BOSH session, assigned it sid '%s'", sid); 264 log("info", "New BOSH session, assigned it sid '%s'", sid);
265 local r, send_buffer = session.requests, session.send_buffer; 265 local r = session.requests;
266 function session.send(s) 266 function session.send(s)
267 -- We need to ensure that outgoing stanzas have the jabber:client xmlns 267 -- We need to ensure that outgoing stanzas have the jabber:client xmlns
268 if s.attr and not s.attr.xmlns then 268 if s.attr and not s.attr.xmlns then
269 s = st.clone(s); 269 s = st.clone(s);
270 s.attr.xmlns = "jabber:client"; 270 s.attr.xmlns = "jabber:client";