mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
uimanager: fix crash on crash....
This commit is contained in:
@@ -341,7 +341,7 @@ function ReaderUI:showReader(file)
|
||||
text = T( _("Opening file '%1'."), file),
|
||||
timeout = 0.1,
|
||||
})
|
||||
UIManager:scheduleIn(0.1, function()
|
||||
UIManager:nextTick(function()
|
||||
DEBUG("creating coroutine for showing reader")
|
||||
local co = coroutine.create(function()
|
||||
self:doShowReader(file)
|
||||
@@ -350,7 +350,7 @@ function ReaderUI:showReader(file)
|
||||
if err ~= nil or ok == false then
|
||||
print '[!] doShowReader coroutine crashed:'
|
||||
print(debug.traceback(co, err, 1))
|
||||
UIManager.quit()
|
||||
UIManager:quit()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user