fixed--多节点管理zlm,wvp重启之后节点中的redis在线状态bug修复

This commit is contained in:
chenjialing
2022-03-03 12:09:28 +08:00
parent 298d104fec
commit b225b53510
3 changed files with 7 additions and 5 deletions

View File

@@ -92,6 +92,7 @@ public class ZLMRunner implements CommandLineRunner {
// 获取所有的zlm 并开启主动连接
List<MediaServerItem> all = mediaServerService.getAllFromDatabase();
mediaServerService.updateVmServer(all);
if (all.size() == 0) {
all.add(mediaConfig.getMediaSerItem());
}