fix:处理心跳响应失败后:停止发送心跳消息,并启动重新上线
This commit is contained in:
parent
2bdcc2f888
commit
67fa0bc1ba
@ -21,7 +21,10 @@ class UdpHeartBeatHandler extends ScpMessageBaseHandle
|
|||||||
final statusCode = heartbeatResponse.statusCode;
|
final statusCode = heartbeatResponse.statusCode;
|
||||||
if (statusCode != null &&
|
if (statusCode != null &&
|
||||||
statusCode != PayloadTypeConstant.heartHeatSuccessResponse) {
|
statusCode != PayloadTypeConstant.heartHeatSuccessResponse) {
|
||||||
// 心跳响应失败,重新上线
|
// 停止发送心跳
|
||||||
|
startChartManage.stopHeartbeat();
|
||||||
|
// 心跳响应失败,重新上线
|
||||||
|
startChartManage.isOnlineStartChartServer = false;
|
||||||
startChartManage.reStartOnlineStartChartServer();
|
startChartManage.reStartOnlineStartChartServer();
|
||||||
}
|
}
|
||||||
startChartManage.heartbeatIntervalTime =
|
startChartManage.heartbeatIntervalTime =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user