feat: 1,星图:退出登录关闭udp相关操作 2,星图:销毁资源取消发送通话中挂断命令
This commit is contained in:
parent
b16aa114eb
commit
176a265859
@ -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();
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user