mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-04 03:27:19 -04:00
return true from thread method as per documented specification
This commit is contained in:
parent
fc486d4bd2
commit
ae501a859d
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user