修复重复调用open rtp server

pull/31/head
648540858 2020-12-21 11:35:28 +08:00
parent d58064587d
commit 1ec6c4506a
1 changed files with 2 additions and 1 deletions

View File

@ -311,7 +311,8 @@ public class ZLMHttpHookListener {
if (autoApplyPlay) { if (autoApplyPlay) {
String app = json.getString("app"); String app = json.getString("app");
String streamId = json.getString("stream"); String streamId = json.getString("stream");
if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1) { StreamInfo streamInfo = storager.queryPlayByStreamId(streamId);
if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1 && streamInfo == null) {
String[] s = streamId.split("_"); String[] s = streamId.split("_");
if (s.length == 4) { if (s.length == 4) {
String deviceId = s[2]; String deviceId = s[2];