From 6baac9cdc9f7f79160c60e9ae0162c561005f449 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 21 八月 2025 13:58:03 +0800 Subject: [PATCH] 1 --- src/main/java/com/zy/core/cache/MessageQueue.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/core/cache/MessageQueue.java b/src/main/java/com/zy/core/cache/MessageQueue.java index 2659aa4..0c6cf02 100644 --- a/src/main/java/com/zy/core/cache/MessageQueue.java +++ b/src/main/java/com/zy/core/cache/MessageQueue.java @@ -95,6 +95,10 @@ case Devp: return DEVP_EXCHANGE.get(id).poll(); case Led: + ConcurrentLinkedQueue<Task> task2 = LED_EXCHANGE.get(id); + if (task2 == null) { + return null; + } return LED_EXCHANGE.get(id).poll(); default: return null; -- Gitblit v1.9.1