From 15d33e45bd8d608b77fb0261ed235bdb68e84cee Mon Sep 17 00:00:00 2001 From: Pixel Perfect Date: Tue, 4 Aug 2026 00:54:08 -0700 Subject: [PATCH] fix(map): preserve lifecycle pause ownership Signed-off-by: Pixel Perfect --- src/ui-touch/UITask.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui-touch/UITask.cpp b/src/ui-touch/UITask.cpp index 6fa2a7c..4d09916 100644 --- a/src/ui-touch/UITask.cpp +++ b/src/ui-touch/UITask.cpp @@ -26004,7 +26004,10 @@ static void mapNoteStorageChanged() { } s_tiles_fs_ready = true; } - if (may_swap) tileBackendSwapFinish(); + // Only a real swap request acquired (or extended) the pause above. A no-op + // notification must not clear a pause owned by card removal/remount or the + // health probe while that lifecycle operation is still draining consumers. + if (wants_swap && may_swap) tileBackendSwapFinish(); #endif for (int i = 0; i < k_tile_fetch_dedup_size; ++i) s_tile_fetch_dedup[i] = 0; s_tile_fetch_dedup_head = 0;