From 67fa0bc1ba74393e6daa7a5b63283da1b6b60541 Mon Sep 17 00:00:00 2001 From: liyi Date: Mon, 16 Dec 2024 13:54:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A4=84=E7=90=86=E5=BF=83=E8=B7=B3?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E5=A4=B1=E8=B4=A5=E5=90=8E=EF=BC=9A=E5=81=9C?= =?UTF-8?q?=E6=AD=A2=E5=8F=91=E9=80=81=E5=BF=83=E8=B7=B3=E6=B6=88=E6=81=AF?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E5=90=AF=E5=8A=A8=E9=87=8D=E6=96=B0=E4=B8=8A?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/talk/startChart/handle/impl/udp_heart_beat_handler.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/talk/startChart/handle/impl/udp_heart_beat_handler.dart b/lib/talk/startChart/handle/impl/udp_heart_beat_handler.dart index de843012..75fe9103 100644 --- a/lib/talk/startChart/handle/impl/udp_heart_beat_handler.dart +++ b/lib/talk/startChart/handle/impl/udp_heart_beat_handler.dart @@ -21,7 +21,10 @@ class UdpHeartBeatHandler extends ScpMessageBaseHandle final statusCode = heartbeatResponse.statusCode; if (statusCode != null && statusCode != PayloadTypeConstant.heartHeatSuccessResponse) { - // 心跳响应失败,重新上线 + // 停止发送心跳 + startChartManage.stopHeartbeat(); + // 心跳响应失败,重新上线 + startChartManage.isOnlineStartChartServer = false; startChartManage.reStartOnlineStartChartServer(); } startChartManage.heartbeatIntervalTime =