mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
onCloseDocument is way too early, if another, later onCloseDocument handler trips a ReaderUI repaint, a new task will be scheduled, and that one will never be cancelled, resulting in it running post-teardown, crashing horribly. This was for instance very easy to trigger via KOSync. Fix #10806