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(); BlueManage().disconnect();
XSJPushProvider().initLocalNotification(isCancelLocalPush: true); XSJPushProvider().initLocalNotification(isCancelLocalPush: true);
StartChartManage().destruction(); StartChartManage().destruction();
StartChartManage().closeUdpSocket();
Get.offNamedUntil(Routers.starLockLoginPage, (Route route) => false); Get.offNamedUntil(Routers.starLockLoginPage, (Route route) => false);
} else { } else {
ApmHelper.instance.logout(); ApmHelper.instance.logout();

View File

@ -713,6 +713,7 @@ class StartChartManage {
// _udpSocket = null; // _udpSocket = null;
} }
// print('发送消息');
//ToDo: //ToDo:
UdpTalkDataHandler().updateSendDataRate(message.length); UdpTalkDataHandler().updateSendDataRate(message.length);
@ -1099,8 +1100,8 @@ class StartChartManage {
} }
/// ///
void destruction() async { Future<void> destruction() async {
sendTalkHangupMessage(); // sendTalkHangupMessage();
isOnlineStartChartServer = false; isOnlineStartChartServer = false;
stopHeartbeat(); stopHeartbeat();
stopTalkExpectMessageTimer(); stopTalkExpectMessageTimer();