return true from thread method as per documented specification

This commit is contained in:
payonel 2017-09-07 10:34:47 -07:00
parent fc486d4bd2
commit ae501a859d

View File

@ -86,6 +86,7 @@ function box_thread:resume()
if coroutine.status(self.pco.root) == "suspended" and not mt.reg then if coroutine.status(self.pco.root) == "suspended" and not mt.reg then
mt.register(0) mt.register(0)
end end
return true
end end
function box_thread:suspend() function box_thread:suspend()
@ -98,6 +99,7 @@ function box_thread:suspend()
if pco_status == "running" or pco_status == "normal" then if pco_status == "running" or pco_status == "normal" then
mt.coma() mt.coma()
end end
return true
end end
function box_thread:status() function box_thread:status()