chore: fix luacheck warning

This commit is contained in:
Qingping Hou
2016-01-03 00:56:55 -08:00
parent 3b92bdc084
commit 9c46cafc9c
2 changed files with 2 additions and 2 deletions

View File

@@ -329,7 +329,7 @@ function ReaderUI:showReader(file)
self:doShowReader(file)
end)
local ok, err = coroutine.resume(co)
if err ~= nil then
if err ~= nil or ok == false then
print '[!] doShowReader coroutine crashed:'
print(debug.traceback(co, err, 1))
UIManager.quit()