diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-02-04 18:53:56 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-02-04 18:53:56 +0000 |
commit | c2064aa2cc4e5d7f0f100b15f53b6adfbc5fd871 (patch) | |
tree | 515a1ff6e5f9f85e29de272d80448cc31991d478 /net | |
parent | 039df2c7e32288235b00224098994aea24b3787c (diff) | |
download | prosody-c2064aa2cc4e5d7f0f100b15f53b6adfbc5fd871.tar.gz prosody-c2064aa2cc4e5d7f0f100b15f53b6adfbc5fd871.zip |
Fix for nil handler error after close
Diffstat (limited to 'net')
-rw-r--r-- | net/server.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua index b5d84dd9..0a0f8492 100644 --- a/net/server.lua +++ b/net/server.lua @@ -456,8 +456,8 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport bufferlen = 0
_sendlistlen = removesocket( _sendlist, socket, _sendlistlen ) -- delete socket from writelist
_ = needtls and handler.starttls(true)
- _ = toclose and handler.close( )
_writetimes[ handler ] = nil
+ _ = toclose and handler.close( )
return true
elseif byte and ( err == "timeout" or err == "wantwrite" ) then -- want write
buffer = string_sub( buffer, byte + 1, bufferlen ) -- new buffer
|