修复退出直播间问题
This commit is contained in:
parent
707e083684
commit
72f7e00dd5
@ -436,7 +436,7 @@ public class LiveNetManager {
|
||||
@Override
|
||||
public void accept(ResponseModel<List<Object>> listResponseModel) throws Exception {
|
||||
if (callback != null) {
|
||||
callback.onError("");
|
||||
callback.onSuccess(null);
|
||||
}
|
||||
}
|
||||
}, new Consumer<Throwable>() {
|
||||
|
@ -1505,18 +1505,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
try {
|
||||
V2TIMManager.getInstance().quitGroup("g" + mLiveBean.getUid(), new V2TIMCallback() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
|
||||
Log.i("tx", "退出成功" + mLiveBean.getUid());
|
||||
LiveNetManager.get(mContext)
|
||||
.leaveRoomNew(mLiveBean.getStream(), mLiveBean.getUid(), new com.yunbao.common.http.base.HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
if (isQuitF) {
|
||||
onRemove(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -1524,13 +1518,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(int code, String desc) {
|
||||
Log.i("tx", "退出失败");
|
||||
}
|
||||
});
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
Loading…
Reference in New Issue
Block a user