Changeset

2969:81991c04a056

Merge 0.7->trunk
author Matthew Wild <mwild1@gmail.com>
date Fri, 09 Apr 2010 12:32:25 +0100
parents 2966:e78436234775 (current diff) 2968:fdd049a4e551 (diff)
children 2971:e21c546368bd
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Wed Apr 07 21:08:16 2010 +0100
+++ b/net/server_select.lua	Fri Apr 09 12:32:25 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"