Changeset

2124:465a7481ab96

net.server_event: Remove premature non-optimisation
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Nov 2009 04:06:40 +0000
parents 2123:f7b589f798af
children 2125:2b4f8a35e41a
files net/server_event.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Sun Nov 22 04:06:00 2009 +0000
+++ b/net/server_event.lua	Sun Nov 22 04:06:40 2009 +0000
@@ -516,7 +516,7 @@
 				end
 			end
 		end
-		local usingssl, receive = interface._usingssl, interface.receive;
+		
 		interface.readcallback = function( event )  -- called on read events
 			--vdebug( "new client read event, id/ip/port:", interface, ip, port )
 			if interface.noreading or interface.fatalerror then  -- leave this event
@@ -531,7 +531,7 @@
 				interface.eventread = nil
 				return -1
 			else -- can read
-				if usingssl then  -- handle luasec
+				if interface._usingssl then  -- handle luasec
 					if interface.eventwritetimeout then  -- ok, in the past writecallback was regged
 						local ret = interface.writecallback( )  -- call it
 						--vdebug( "tried to write in readcallback, result:", ret )