Software /
code /
prosody
Diff
net/server_select.lua @ 2968:fdd049a4e551
Merge 0.6->0.7
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 09 Apr 2010 12:31:51 +0100 |
parent | 2967:c39ad633b26d |
parent | 2925:692b3c6c5bd2 |
child | 2970:9b8e139eff5f |
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"