fix:取消倒计时结束挂断

This commit is contained in:
liyi 2025-04-02 09:58:52 +08:00
parent e3cf148b50
commit 0aaaecede9

View File

@ -275,12 +275,12 @@ class TalkViewLogic extends BaseGetXController {
Timer.periodic(const Duration(seconds: 1), (Timer t) {
if (state.listData.value.length > 0) {
state.oneMinuteTime.value++;
if (state.oneMinuteTime.value >= 60) {
t.cancel(); //
state.oneMinuteTime.value = 0;
//
// udpHangUpAction();
}
// if (state.oneMinuteTime.value >= 60) {
// t.cancel(); //
// state.oneMinuteTime.value = 0;
// //
// // udpHangUpAction();
// }
}
});
break;
@ -492,7 +492,9 @@ class TalkViewLogic extends BaseGetXController {
stopProcessingAudio();
//
_imageCache.clear();
state.oneMinuteTimeTimer?.cancel(); //
state.oneMinuteTimeTimer = null; //
state.oneMinuteTime.value = 0;
super.onClose();
}