fix:调整异常后中断持续发送
This commit is contained in:
parent
a259ed9dd3
commit
50944a082b
@ -595,13 +595,16 @@ class StartChartManage {
|
||||
|
||||
// 发送拒绝接听消息
|
||||
void startTalkRejectMessageTimer() async {
|
||||
try {
|
||||
talkRejectTimer ??= Timer.periodic(
|
||||
Duration(seconds: _defaultIntervalTime),
|
||||
(Timer timer) async {
|
||||
_sendTalkRejectMessage();
|
||||
},
|
||||
);
|
||||
|
||||
} catch (e) {
|
||||
AppLog.log("startTalkRejectMessageTimer e:${e}");
|
||||
} finally {
|
||||
// 设置状态为拒绝
|
||||
StartChartTalkStatus.instance.setRejected();
|
||||
// 停止播放铃声
|
||||
@ -617,6 +620,7 @@ class StartChartManage {
|
||||
talkePingOverTimeTimerManager.cancel();
|
||||
talkDataOverTimeTimerManager.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
// 发送期望接受消息
|
||||
void sendTalkExpectMessage({required TalkExpectReq talkExpect}) async {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user