From b078e5f9b55d17fcf98766152df81651f88bf8a1 Mon Sep 17 00:00:00 2001 From: yutou Date: Wed, 7 Apr 2021 09:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A3=80=E6=9F=A5=E5=BD=95?= =?UTF-8?q?=E5=88=B6=E6=97=B6=E9=9D=9E=E7=9B=B4=E6=92=AD=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E7=9B=B4=E6=92=AD=E5=BD=95=E5=88=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/bilibili/BiliBili/Live.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/yutou/bilibili/BiliBili/Live.java b/src/main/java/com/yutou/bilibili/BiliBili/Live.java index 3692643..4ddc7c9 100644 --- a/src/main/java/com/yutou/bilibili/BiliBili/Live.java +++ b/src/main/java/com/yutou/bilibili/BiliBili/Live.java @@ -256,7 +256,6 @@ public class Live implements ApplicationContextAware { */ public void decompress(byte[] data) { try { - byte[] bytes = new byte[data.length - 16]; System.arraycopy(data, 16, bytes, 0, data.length - 16); @@ -275,6 +274,7 @@ public class Live implements ApplicationContextAware { info.setPopular(popular); } } + checkLive(); } catch (Exception e) { e.printStackTrace(); com.yutou.bilibili.Tools.Log.i("----------ERROR----------"); @@ -290,6 +290,11 @@ public class Live implements ApplicationContextAware { if (isLive && upData.getSavelive() == 1) { SaveLive.getInstance().addLive(this); } + if(!isLive&&upData.getSavelive()==1){ + if(SaveLive.getInstance().checkLive(roomId)){ + SaveLive.getInstance().stop(roomId); + } + } }