Comparison

net/server_select.lua @ 4982:07f478b1f7c0

net.server_select: Remove extraneous variable
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Jul 2012 23:39:27 +0100
parent 4980:2e35cfe11835
child 4983:4fd6a020d0d8
comparison
equal deleted inserted replaced
4981:95c18750b89e 4982:07f478b1f7c0
473 return false 473 return false
474 end 474 end
475 end 475 end
476 local _sendbuffer = function( ) -- this function sends data 476 local _sendbuffer = function( ) -- this function sends data
477 local succ, err, byte, buffer, count; 477 local succ, err, byte, buffer, count;
478 local count;
479 if socket then 478 if socket then
480 buffer = table_concat( bufferqueue, "", 1, bufferqueuelen ) 479 buffer = table_concat( bufferqueue, "", 1, bufferqueuelen )
481 succ, err, byte = send( socket, buffer, 1, bufferlen ) 480 succ, err, byte = send( socket, buffer, 1, bufferlen )
482 count = ( succ or byte or 0 ) * STAT_UNIT 481 count = ( succ or byte or 0 ) * STAT_UNIT
483 sendtraffic = sendtraffic + count 482 sendtraffic = sendtraffic + count