You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/device
NiLuJe ae5b2d68ca
AutoSuspend: Don't send LeaveStandby events from a zombie plugin instance (#9124)
Long story short: the LeaveStandby event is sent via `tickAfterNext`, so if we tear down the plugin right after calling it (in this case, that means that the very input event that wakes the device up from suspend is one that kills ReaderUI or FileManager), what's in UIManager's task queue isn't the actual function, but the anonymous nextTick wrapper constructed by `tickAfterNext` (c.f., 
https://github.com/koreader/koreader/issues/9112#issuecomment-1133999385).

Tweak `UIManager:tickAfterNext` to return a reference to said wrapper, so that we can store it and unschedule that one, too, in `AutoSuspend:onCloseWidget`.

Fix #9112 (many thanks to [@boredhominid](https://github.com/boredhominid) for his help in finding a repro for this ;)).
Re: #8638, as the extra debugging facilities (i.e., ebb81b9845) added during testing might help pinpoint the root issue for that one, too.

Also includes a minor simplification to `UIManager:_checkTasks`, and various other task queue related codepaths (e.g., `WakeupMgr`) ;).
2 years ago
..
android Initial Kindle PW5 support (#8856) 2 years ago
cervantes Initial Kindle PW5 support (#8856) 2 years ago
dummy add dummy device & rename runtimectl:setDevice to runtimectl:init 5 years ago
generic Kindle: Fix retrieveNetworkInfo on the K4 (#9073) 2 years ago
kindle Page turn animations 2 years ago
kobo NetworkManager: Make sure we show an IM at the *start* of a Wi-Fi toggle action (#9064) 2 years ago
pocketbook Initial Kindle PW5 support (#8856) 2 years ago
remarkable Fix reMarkable crash bug v2022.05: event overwrite with new time module (#9121) 2 years ago
sdl [feat] Replace TimeVal (RIP) with time, fixed point time seconds (#8999) 2 years ago
sony-prstux Input: Minor cleanups (#7542) 3 years ago
devicelistener.lua [frontlight, kobo, cervantes] Remove auto_warmth (#8154) 3 years ago
gesturedetector.lua [feat] Replace TimeVal (RIP) with time, fixed point time seconds (#8999) 2 years ago
input.lua Merge `discardEvents` & `inhibitInput` (#9065) 2 years ago
key.lua Refactoring hardware abstraction 10 years ago
sysfs_light.lua Minor Lua I/O cleanups (#8921) 2 years ago
thirdparty.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
wakeupmgr.lua AutoSuspend: Don't send LeaveStandby events from a zombie plugin instance (#9124) 2 years ago