comparison mod_register_json/mod_register_json.lua @ 599:7df0d5c8abfd

mod_register_json: punctuation adjust
author Marco Cirillo <maranda@lightwitch.org>
date Thu, 09 Feb 2012 00:47:01 +0000
parents 36b3ecebdc7e
children 121762432eb1
comparison
equal deleted inserted replaced
598:36b3ecebdc7e 599:7df0d5c8abfd
120 httpserver.new.http_servers[options.port].handlers[options.path or "register_account"] = nil 120 httpserver.new.http_servers[options.port].handlers[options.path or "register_account"] = nil
121 end 121 end
122 end 122 end
123 123
124 -- if there are no handlers left clean and close the socket, doesn't work with server_event 124 -- if there are no handlers left clean and close the socket, doesn't work with server_event
125 local event = require "core.configmanager".get("*", "core", "use_libevent"); 125 local event = require "core.configmanager".get("*", "core", "use_libevent")
126 126
127 if not event then 127 if not event then
128 for _, options in ipairs(ports) do 128 for _, options in ipairs(ports) do
129 if options.port and not next(httpserver.new.http_servers[options.port].handlers) then 129 if options.port and not next(httpserver.new.http_servers[options.port].handlers) then
130 httpserver.new.http_servers[options.port] = nil 130 httpserver.new.http_servers[options.port] = nil