aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-06-09 17:03:15 +0200
committerKim Alvefur <zash@zash.se>2013-06-09 17:03:15 +0200
commit1e29dc5c934fd38f4318679eb58a5ef106107cca (patch)
treed2df3e2e2d6e79961b1a312a8049eed3f6c55da5
parentbf631330f98adca03705f2f1eda337998338fc71 (diff)
parentd7d15e2ec79c83f13e4dd8bf7c52db658290d336 (diff)
downloadprosody-1e29dc5c934fd38f4318679eb58a5ef106107cca.tar.gz
prosody-1e29dc5c934fd38f4318679eb58a5ef106107cca.zip
Merge 0.9->trunk
-rw-r--r--net/server_select.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 4d0f3f94..98e9f847 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -263,7 +263,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
if socket:getfd() >= _maxfd then
out_error("server.lua: Disallowed FD number: "..socket:getfd()) -- PROTIP: Switch to libevent
socket:close( ) -- Should we send some kind of error here?
- server.pause( )
+ if server then
+ server.pause( )
+ end
return nil, nil, "fd-too-large"
end
socket:settimeout( 0 )