Comparison

core/s2smanager.lua @ 2760:604db849f111

s2smanager: Don't tostring() the data before sending, sends2s already does this.
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Nov 2009 13:47:45 +0000
parent 2712:9c579864b20a
child 2780:f8232abcab2a
comparison
equal deleted inserted replaced
2713:1fc95582d74b 2760:604db849f111
400 -- we can only send if auth succeeds) :) 400 -- we can only send if auth succeeds) :)
401 local send_buffer = session.send_buffer; 401 local send_buffer = session.send_buffer;
402 if send_buffer and #send_buffer > 0 then 402 if send_buffer and #send_buffer > 0 then
403 log("debug", "Sending s2s send_buffer now..."); 403 log("debug", "Sending s2s send_buffer now...");
404 for i, data in ipairs(send_buffer) do 404 for i, data in ipairs(send_buffer) do
405 session.sends2s(tostring(data)); 405 session.sends2s(data);
406 send_buffer[i] = nil; 406 send_buffer[i] = nil;
407 end 407 end
408 end 408 end
409 session.send_buffer = nil; 409 session.send_buffer = nil;
410 410