If `toPhoneQueue` is full, still increment `fromNum` to avoid client never getting packets (#4246)

pull/4248/head
GUVWAF 2024-07-07 16:06:42 +02:00 zatwierdzone przez GitHub
rodzic f59d98482f
commit 86ca81b555
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -299,6 +299,7 @@ void MeshService::sendToPhone(meshtastic_MeshPacket *p)
} else {
LOG_WARN("ToPhone queue is full, dropping packet.\n");
releaseToPool(p);
fromNum++; // Make sure to notify observers in case they are reconnected so they can get the packets
return;
}
}