Comparison

core/s2smanager.lua @ 2100:c8005be640b1

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 2090:7810648ea26d
child 2101:74e90854a4dd
comparison
equal deleted inserted replaced
2099:73e083d01449 2100:c8005be640b1
389 -- we can only send if auth succeeds) :) 389 -- we can only send if auth succeeds) :)
390 local send_buffer = session.send_buffer; 390 local send_buffer = session.send_buffer;
391 if send_buffer and #send_buffer > 0 then 391 if send_buffer and #send_buffer > 0 then
392 log("debug", "Sending s2s send_buffer now..."); 392 log("debug", "Sending s2s send_buffer now...");
393 for i, data in ipairs(send_buffer) do 393 for i, data in ipairs(send_buffer) do
394 session.sends2s(tostring(data)); 394 session.sends2s(data);
395 send_buffer[i] = nil; 395 send_buffer[i] = nil;
396 end 396 end
397 end 397 end
398 session.send_buffer = nil; 398 session.send_buffer = nil;
399 399