From 519cb904d071670e0550d0db1eb60f3d40d2bd15 Mon Sep 17 00:00:00 2001 From: GUVWAF Date: Sun, 7 Jul 2024 15:40:33 +0200 Subject: [PATCH] If `toPhoneQueue` is full, still increment `fromNum` to avoid client never getting packets --- src/mesh/MeshService.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesh/MeshService.cpp b/src/mesh/MeshService.cpp index e5f33e8e7f..9e2a5b1102 100644 --- a/src/mesh/MeshService.cpp +++ b/src/mesh/MeshService.cpp @@ -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; } }