mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -04:00
theoretically fix MightyPirates/#3580
This commit is contained in:
parent
1c0dc67182
commit
8142d76e44
@ -265,6 +265,7 @@ function thread.create(fp, ...)
|
|||||||
local old_status = t:status()
|
local old_status = t:status()
|
||||||
mt.__status = "dead"
|
mt.__status = "dead"
|
||||||
process.removeHandle(t, mt.attached)
|
process.removeHandle(t, mt.attached)
|
||||||
|
process.removeHandle(mt.process, t)
|
||||||
if old_status ~= "dead" then
|
if old_status ~= "dead" then
|
||||||
event.push("thread_exit")
|
event.push("thread_exit")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user