mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 19:17:27 -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
|
||||
mt.register(0)
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
function box_thread:suspend()
|
||||
@ -98,6 +99,7 @@ function box_thread:suspend()
|
||||
if pco_status == "running" or pco_status == "normal" then
|
||||
mt.coma()
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
function box_thread:status()
|
||||
|
Loading…
x
Reference in New Issue
Block a user