mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 10:42:08 +00:00
If toPhoneQueue
is full, still increment fromNum
to avoid client never getting packets (#4246)
This commit is contained in:
parent
f59d98482f
commit
86ca81b555
@ -299,6 +299,7 @@ void MeshService::sendToPhone(meshtastic_MeshPacket *p)
|
|||||||
} else {
|
} else {
|
||||||
LOG_WARN("ToPhone queue is full, dropping packet.\n");
|
LOG_WARN("ToPhone queue is full, dropping packet.\n");
|
||||||
releaseToPool(p);
|
releaseToPool(p);
|
||||||
|
fromNum++; // Make sure to notify observers in case they are reconnected so they can get the packets
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user