Commit bdd1846eb47ced933807c4775d9ae982325e2da2
1 parent
a0129560
优化自动点播判断逻辑
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
| @@ -593,7 +593,7 @@ public class ZLMHttpHookListener { | @@ -593,7 +593,7 @@ public class ZLMHttpHookListener { | ||
| 593 | String deviceId = s[0]; | 593 | String deviceId = s[0]; |
| 594 | String channelId = s[1]; | 594 | String channelId = s[1]; |
| 595 | Device device = redisCatchStorage.getDevice(deviceId); | 595 | Device device = redisCatchStorage.getDevice(deviceId); |
| 596 | - if (device == null) { | 596 | + if (device == null || !device.isOnLine()) { |
| 597 | defaultResult.setResult(new HookResult(ErrorCode.ERROR404.getCode(), ErrorCode.ERROR404.getMsg())); | 597 | defaultResult.setResult(new HookResult(ErrorCode.ERROR404.getCode(), ErrorCode.ERROR404.getMsg())); |
| 598 | return defaultResult; | 598 | return defaultResult; |
| 599 | } | 599 | } |