Merge 8142d76e447de9f9f61d1315572d8b17805dbd70 into 571482db88080d56329e8f8cf0db2a90825bf1d7

This commit is contained in:
Ocawesome101 2025-08-13 17:39:58 +08:00 committed by GitHub
commit 81161556e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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