优化zlm接入

This commit is contained in:
648540858
2021-12-02 18:09:38 +08:00
parent 2a1f979651
commit a797cd1c4b
3 changed files with 42 additions and 2 deletions

View File

@@ -52,7 +52,9 @@ public class ZLMRunner implements CommandLineRunner {
(MediaServerItem mediaServerItem, JSONObject response)->{
ZLMServerConfig zlmServerConfig = JSONObject.toJavaObject(response, ZLMServerConfig.class);
if (zlmServerConfig !=null ) {
startGetMedia.remove(zlmServerConfig.getGeneralMediaServerId());
if (startGetMedia != null) {
startGetMedia.remove(zlmServerConfig.getGeneralMediaServerId());
}
mediaServerService.handLeZLMServerConfig(zlmServerConfig);
}
});