diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-22 04:06:40 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-22 04:06:40 +0000 |
commit | 26277a79500975351326541d321a8d4ad73e9e48 (patch) | |
tree | d925766bb4e6b73b9b896f519652bb783b31ec96 /net/server_event.lua | |
parent | 07f5e5f4c81bfaaa9389bcb15302349de388c966 (diff) | |
download | prosody-26277a79500975351326541d321a8d4ad73e9e48.tar.gz prosody-26277a79500975351326541d321a8d4ad73e9e48.zip |
net.server_event: Remove premature non-optimisation
Diffstat (limited to 'net/server_event.lua')
-rw-r--r-- | net/server_event.lua | 4 |
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 )
|