This commit is contained in:
J. Nick Koston 2025-05-22 21:31:31 -05:00
parent f0b311f839
commit 663f38d2ec
No known key found for this signature in database

View File

@ -205,7 +205,6 @@ void APIConnection::loop() {
start_time = millis();
static uint8_t max_ping_retries = 60;
static uint16_t ping_retry_interval = 1000;
const uint32_t now = App.get_loop_component_start_time();
if (this->sent_ping_) {
// Disconnect if not responded within 2.5*keepalive
if (now - this->last_traffic_ > (KEEPALIVE_TIMEOUT_MS * 5) / 2) {