diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-03-04 12:44:07 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-03-04 12:44:07 +0000 |
commit | 6a5be713088b28e3fd2cbb46ba38b9d13c26090d (patch) | |
tree | a783754563d844f911654e775d5b57391f055f29 /net | |
parent | 898101d2d846eb260c1675d8c1785e236b64dab2 (diff) | |
download | prosody-6a5be713088b28e3fd2cbb46ba38b9d13c26090d.tar.gz prosody-6a5be713088b28e3fd2cbb46ba38b9d13c26090d.zip |
net.server: Don't call shutdown method on socket if it doesn't have one, eg. for UDP
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 43b295e9..361c5949 100644 --- a/net/server.lua +++ b/net/server.lua @@ -333,7 +333,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport send( socket, table_concat( bufferqueue, "", 1, bufferqueuelen ), 1, bufferlen ) -- forced send
end
end
- shutdown( socket )
+ _ = shutdown and shutdown( socket )
socket:close( )
_sendlistlen = removesocket( _sendlist, socket, _sendlistlen )
_socketlist[ socket ] = nil
|