Changeset

2968:fdd049a4e551

Merge 0.6->0.7
author Matthew Wild <mwild1@gmail.com>
date Fri, 09 Apr 2010 12:31:51 +0100
parents 2964:49b5c87d2fa0 (current diff) 2967:c39ad633b26d (diff)
children 2969:81991c04a056 2970:9b8e139eff5f
files net/server.lua net/server_select.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Wed Apr 07 21:00:20 2010 +0100
+++ b/net/server_select.lua	Fri Apr 09 12:31:51 2010 +0100
@@ -661,7 +661,7 @@
 	if type( listeners ) ~= "table" then
 		err = "invalid listener table"
 	end
-	if not type( port ) == "number" or not ( port >= 0 and port <= 65535 ) then
+	if type( port ) ~= "number" or not ( port >= 0 and port <= 65535 ) then
 		err = "invalid port"
 	elseif _server[ port ] then
 		err = "listeners on port '" .. port .. "' already exist"