Diff

net/server_select.lua @ 7501:8c3d93b67560

net.server_select: remove unused one-letter loop variable [luacheck]
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 14 Jul 2016 18:49:38 +0800
parent 7468:2d38a2519d09
child 7505:3d950ee0de35
child 7526:71ef4a4104d3
line wrap: on
line diff
--- a/net/server_select.lua	Thu Jul 14 18:43:17 2016 +0800
+++ b/net/server_select.lua	Thu Jul 14 18:49:38 2016 +0800
@@ -570,7 +570,7 @@
 		local read, wrote
 		handshake = coroutine_wrap( function( client ) -- create handshake coroutine
 				local err
-				for i = 1, _maxsslhandshake do
+				for _ = 1, _maxsslhandshake do
 					_sendlistlen = ( wrote and removesocket( _sendlist, client, _sendlistlen ) ) or _sendlistlen
 					_readlistlen = ( read and removesocket( _readlist, client, _readlistlen ) ) or _readlistlen
 					read, wrote = nil, nil