2个小bug
1、add update事件调用错误函数 2、在线的还发在线事件,如果别人正在给你推送目录就会不停的update设备表,设备表又没加锁,页面就无法更改设备信息了。。。
This commit is contained in:
parent
2358985ab5
commit
21e66ab399
@ -165,7 +165,7 @@ public class CatalogEventLister implements ApplicationListener<CatalogEvent> {
|
||||
GbStream gbStream = storager.queryStreamInParentPlatform(platform.getServerGBId(), gbId);
|
||||
DeviceChannel deviceChannelByStream = gbStreamService.getDeviceChannelListByStream(gbStream, gbStream.getCatalogId(), platform.getDeviceGBId());
|
||||
deviceChannelList.add(deviceChannelByStream);
|
||||
sipCommanderFroPlatform.sendNotifyForCatalogOther(event.getType(), platform, deviceChannelList, subscribeInfo, null);
|
||||
sipCommanderFroPlatform.sendNotifyForCatalogAddOrUpdate(event.getType(), platform, deviceChannelList, subscribeInfo, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -309,7 +309,7 @@ public class NotifyRequestProcessor extends SIPRequestProcessorParent implements
|
||||
|
||||
}
|
||||
|
||||
if (offLineDetector.isOnline(deviceId)) {
|
||||
if (!offLineDetector.isOnline(deviceId)) {
|
||||
publisher.onlineEventPublish(device, VideoManagerConstants.EVENT_ONLINE_MESSAGE);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user