feat: 1,星图:退出登录关闭udp相关操作 2,星图:销毁资源取消发送通话中挂断命令

This commit is contained in:
“DaisyWu” 2025-01-23 15:04:59 +08:00
parent b16aa114eb
commit 176a265859
2 changed files with 4 additions and 2 deletions

View File

@ -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();

View File

@ -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();