summaryrefslogtreecommitdiff
path: root/controller.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2026-04-11 09:25:47 -0500
committercheapie <no-email-for-you@example.com>2026-04-11 09:25:47 -0500
commit45e74cd1c255fb62aa06d40c92c637a534c65c78 (patch)
treee75e3b0d27aa7e6e4978d5ede564c0474d7f11b6 /controller.lua
parent1869387af0aeb86b7177ad1331ab48d4049ecc94 (diff)
downloadcelevator-45e74cd1c255fb62aa06d40c92c637a534c65c78.tar
celevator-45e74cd1c255fb62aa06d40c92c637a534c65c78.tar.gz
celevator-45e74cd1c255fb62aa06d40c92c637a534c65c78.tar.bz2
celevator-45e74cd1c255fb62aa06d40c92c637a534c65c78.tar.xz
celevator-45e74cd1c255fb62aa06d40c92c637a534c65c78.zip
Fix a rare crash
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller.lua b/controller.lua
index 2c6c9b6..a77a2e7 100644
--- a/controller.lua
+++ b/controller.lua
@@ -595,7 +595,7 @@ function celevator.controller.run(pos,event)
celevator.storage:set_string("controller_equeue",core.serialize(celevator.controller.equeue))
if #celevator.controller.equeue[hash] > 5 then
local pstring = core.pos_to_string(pos)
- local queuelen = #celevator.controller.queue[hash]
+ local queuelen = #celevator.controller.equeue[hash]
local message = string.format("[celevator] [controller] Async process for controller at %s is falling behind, %d events in queue",pstring,queuelen)
core.log("warning",message)
end