优化自动点播判断逻辑

pull/1209/head
648540858 2023-12-06 22:31:26 +08:00
parent a01295603a
commit bdd1846eb4
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ public class ZLMHttpHookListener {
String deviceId = s[0];
String channelId = s[1];
Device device = redisCatchStorage.getDevice(deviceId);
if (device == null) {
if (device == null || !device.isOnLine()) {
defaultResult.setResult(new HookResult(ErrorCode.ERROR404.getCode(), ErrorCode.ERROR404.getMsg()));
return defaultResult;
}