aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-22 04:06:40 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-22 04:06:40 +0000
commit26277a79500975351326541d321a8d4ad73e9e48 (patch)
treed925766bb4e6b73b9b896f519652bb783b31ec96 /net
parent07f5e5f4c81bfaaa9389bcb15302349de388c966 (diff)
downloadprosody-26277a79500975351326541d321a8d4ad73e9e48.tar.gz
prosody-26277a79500975351326541d321a8d4ad73e9e48.zip
net.server_event: Remove premature non-optimisation
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 5bff633d..5df764b4 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -516,7 +516,7 @@ do
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 @@ do
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 )