aboutsummaryrefslogtreecommitdiffstats
path: root/net/server.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-03-04 12:44:07 +0000
committerMatthew Wild <mwild1@gmail.com>2009-03-04 12:44:07 +0000
commit6a5be713088b28e3fd2cbb46ba38b9d13c26090d (patch)
treea783754563d844f911654e775d5b57391f055f29 /net/server.lua
parent898101d2d846eb260c1675d8c1785e236b64dab2 (diff)
downloadprosody-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/server.lua')
-rw-r--r--net/server.lua2
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