Changeset

5664:4f499eb63c04

Merge 0.9->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 09 Jun 2013 17:03:15 +0200
parents 5662:685d46ec352b (current diff) 5663:4e51ceee469c (diff)
children 5666:c1e1b265ee82
files net/server_select.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Sun Jun 09 12:59:23 2013 +0200
+++ b/net/server_select.lua	Sun Jun 09 17:03:15 2013 +0200
@@ -263,7 +263,9 @@
 	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 )