mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-23 06:46:02 +00:00
fix(session): read the compressed client back when it is in front of a running game (#2600)
* fix(session): read the compressed client back when it is in front of a running game * fix(session): keep the client compressed while focus is unknown A missing or unreadable focus.json no longer counts as the client in front of the game, so the readback timer starts only on a confirmed focus change. * fix(session): invalidate focus snapshots after collection failures * fix(session): retry focus snapshot publication
This commit is contained in:
1 parent
8e49dfe190
commit
8c8cae85cf
6 files changed
+221
-17
No files matched your search
@@ -455,7 +455,7 @@ class ReclaimDispatchTest(unittest.TestCase):
|
||||
source = source.replace('/tmp/.bl-zram', str(root / 'ctl'))
|
||||
monitor = SCRIPT.read_text()
|
||||
start = monitor.index(' _bl_preserved_growth=$_bl_growth', monitor.index('while kill -0 $$'))
|
||||
stop = monitor.index(' if [ "$_bl_game" = 1 ] && bl_game_focused', start)
|
||||
stop = monitor.index(' _bl_focus=1\n', start)
|
||||
cycle = monitor[start:stop] if body is None else body
|
||||
script = f'''
|
||||
set -u
|
||||
|
||||
Reference in new issue
Block a user