Comparison

plugins/mod_bosh.lua @ 5635:84d3d7b69f9a

mod_bosh: rename variable for clarity
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 May 2013 18:38:36 +0100
parent 5634:7298c9bbb30f
child 5640:4f1889672063
comparison
equal deleted inserted replaced
5634:7298c9bbb30f 5635:84d3d7b69f9a
362 stanza = session.filter("stanzas/in", stanza); 362 stanza = session.filter("stanzas/in", stanza);
363 core_process_stanza(session, stanza); 363 core_process_stanza(session, stanza);
364 end 364 end
365 end 365 end
366 366
367 function stream_callbacks.streamclosed(request) 367 function stream_callbacks.streamclosed(context)
368 local session = sessions[request.sid]; 368 local session = sessions[context.sid];
369 if session then 369 if session then
370 session.bosh_processing = false; 370 session.bosh_processing = false;
371 if #session.send_buffer > 0 then 371 if #session.send_buffer > 0 then
372 session.send(""); 372 session.send("");
373 end 373 end