This commit is contained in:
yutou
2021-05-27 10:29:13 +08:00
parent efcb7e5ac2
commit 470d07d416
7 changed files with 16 additions and 25 deletions

View File

@@ -44,13 +44,8 @@ public class LiveController {
}
if (data.getEnable()==1||data.getOfflinelistening()==1) {
if (live == null) {
try {
live=new Live();
live.add(data.getRoomid(), !StringUtils.isEmpty(AppTools.readFile(new File("cookies.json"))));
live.start();
} catch (Exception e) {
com.yutou.bilibili.Tools.Log.e(e);
}
live=new Live();
live.add(data.getRoomid(), !StringUtils.isEmpty(AppTools.readFile(new File("cookies.json"))));
}
} else {
if (live != null) {