修复使用推流状态作为推流通道状态为false仍然发送通知

This commit is contained in:
648540858
2023-06-29 11:22:32 +08:00
parent 7f0be280c3
commit 0592fd676f
2 changed files with 11 additions and 9 deletions

View File

@@ -387,7 +387,9 @@ public class ZLMHttpHookListener {
}
GbStream gbStream = storager.getGbStream(param.getApp(), param.getStream());
if (gbStream != null) {
eventPublisher.catalogEventPublishForStream(null, gbStream, param.isRegist()?CatalogEvent.ON:CatalogEvent.OFF);
if (userSetting.isUsePushingAsStatus()) {
eventPublisher.catalogEventPublishForStream(null, gbStream, param.isRegist()?CatalogEvent.ON:CatalogEvent.OFF);
}
}
if (type != null) {
// 发送流变化redis消息