Software /
code /
prosody
Diff
util/async.lua @ 8976:92f0876b9230
MUC: Add config option to allow members to invite other members to the room (previously only owners/admins could do this)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 06 Jul 2018 15:33:46 +0100 |
parent | 8927:ed0891383e78 |
child | 8995:2e6f7ab97794 |
line wrap: on
line diff
--- a/util/async.lua Fri Jul 06 00:19:22 2018 +0200 +++ b/util/async.lua Fri Jul 06 15:33:46 2018 +0100 @@ -148,7 +148,7 @@ function runner_mt:run(input) if input ~= nil then table.insert(self.queue, input); - self:log("debug", "queued new work item, %d items queued", #self.queue); + --self:log("debug", "queued new work item, %d items queued", #self.queue); end if self.state ~= "ready" then -- The runner is busy. Indicate that the task item has been @@ -167,7 +167,7 @@ -- Process task item(s) while the queue is not empty, and we're not blocked local n, state, err = #q, self.state, nil; self.state = "running"; - self:log("debug", "running main loop"); + --self:log("debug", "running main loop"); while n > 0 and state == "ready" and not err do local consumed; -- Loop through queue items, and attempt to run them