mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-03-28 17:43:05 +01:00
Clear raw packet ref on reconnect
This commit is contained in:
@@ -229,6 +229,9 @@ export function App() {
|
||||
});
|
||||
},
|
||||
onReconnect: () => {
|
||||
// Clear raw packets: observation_id is a process-local counter that resets
|
||||
// on backend restart, so stale packets would cause new ones to be deduped away.
|
||||
setRawPackets([]);
|
||||
// Silently recover any data missed during the disconnect window
|
||||
triggerReconcile();
|
||||
refreshUnreads();
|
||||
|
||||
Reference in New Issue
Block a user