feat: 1,星图:退出登录关闭udp相关操作 2,星图:销毁资源取消发送通话中挂断命令
This commit is contained in:
parent
b16aa114eb
commit
176a265859
@ -150,6 +150,7 @@ class MineSetLogic extends BaseGetXController {
|
||||
BlueManage().disconnect();
|
||||
XSJPushProvider().initLocalNotification(isCancelLocalPush: true);
|
||||
StartChartManage().destruction();
|
||||
StartChartManage().closeUdpSocket();
|
||||
Get.offNamedUntil(Routers.starLockLoginPage, (Route route) => false);
|
||||
} else {
|
||||
ApmHelper.instance.logout();
|
||||
|
||||
@ -713,6 +713,7 @@ class StartChartManage {
|
||||
// _udpSocket = null;
|
||||
}
|
||||
|
||||
// print('发送消息');
|
||||
//ToDo: 增加对讲调试、正式可删除
|
||||
UdpTalkDataHandler().updateSendDataRate(message.length);
|
||||
|
||||
@ -1099,8 +1100,8 @@ class StartChartManage {
|
||||
}
|
||||
|
||||
/// 销毁资源
|
||||
void destruction() async {
|
||||
sendTalkHangupMessage();
|
||||
Future<void> destruction() async {
|
||||
// sendTalkHangupMessage();
|
||||
isOnlineStartChartServer = false;
|
||||
stopHeartbeat();
|
||||
stopTalkExpectMessageTimer();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user