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/plugins
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
..
SSH.koplugin [feat] Non-touch improvements (#8859) 2 years ago
autofrontlight.koplugin Tame BackgroundRunner: stop running when no more job (#6605) 4 years ago
autostandby.koplugin SpinWidget: similar size in portrait and landscape (#8226) 3 years ago
autosuspend.koplugin AutoSuspend: Don't send LeaveStandby events from a zombie plugin instance (#9124) 2 years ago
autoturn.koplugin [feat] Replace TimeVal (RIP) with time, fixed point time seconds (#8999) 2 years ago
autowarmth.koplugin DoubleSpinWidget, SpinWidget: add units, make usage more consistent (#9046) 2 years ago
backgroundrunner.koplugin [feat] Replace TimeVal (RIP) with time, fixed point time seconds (#8999) 2 years ago
batterystat.koplugin Battery Stat: for real (#8694) 2 years ago
bookshortcuts.koplugin Book Shortcuts: allow recursively searching folders 2 years ago
calibre.koplugin fix: attempt to call local start_time (number) (#9086) 2 years ago
coverbrowser.koplugin Show TitleBar left and right buttons on non-touch devices (#9041) 2 years ago
coverimage.koplugin [feat] Non-touch improvements (#8859) 2 years ago
docsettingtweak.koplugin [plugin] DocSettingTweak: disable on NT devices (#8599) 3 years ago
exporter.koplugin exporter.koplugin: use safe filename 2 years ago
gestures.koplugin DoubleSpinWidget, SpinWidget: add units, make usage more consistent (#9046) 2 years ago
hello.koplugin Dispatcher: Revamp sections and item order 3 years ago
japanese.koplugin Minor Lua I/O cleanups (#8921) 2 years ago
keepalive.koplugin Use PluginShare to share the keepalive state (#7416) 3 years ago
kosync.koplugin kosync: send progress as a string to the server (#8758) 2 years ago
movetoarchive.koplugin ReaderUI: Saner FM/RD lifecycle 3 years ago
newsdownloader.koplugin Revert NewsDownloader (#8953) 2 years ago
opds.koplugin Add OPDS PSE 1.0 support (#8919) 2 years ago
perceptionexpander.koplugin [feat] Non-touch improvements (#8859) 2 years ago
profiles.koplugin [feat] Non-touch improvements (#8859) 2 years ago
qrclipboard.koplugin [fix] Minor doc touchups re. QR encode (#6861) 4 years ago
readtimer.koplugin datetimewidget: simpler usage, allows 2 to 6 numberpickers for date and time (#9070) 2 years ago
statistics.koplugin [plugin, statistics] simplify ReaderProgress for better translations (#9113) 2 years ago
systemstat.koplugin [feat] Replace TimeVal (RIP) with time, fixed point time seconds (#8999) 2 years ago
terminal.koplugin DoubleSpinWidget, SpinWidget: add units, make usage more consistent (#9046) 2 years ago
texteditor.koplugin [feat] Non-touch improvements (#8859) 2 years ago
timesync.koplugin Cleanup eye-gouging madness around io.read calls (#7149) 3 years ago
wallabag.koplugin [plugin] Wallabag: archive instead of deleting read articles by default (#9018) 2 years ago