mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
fix: 更新安装程序版本号并移除线程ID检查
移除线程模块中不必要的错误检查,避免在非线程环境中调用api.id()时抛出错误
This commit is contained in:
@@ -103,9 +103,9 @@ function api.exists(id)
|
||||
end
|
||||
|
||||
function api.id()
|
||||
if not current then
|
||||
error("No current thread - are you calling this outside a thread?")
|
||||
end
|
||||
-- if not current then
|
||||
-- error("No current thread - are you calling this outside a thread?")
|
||||
-- end
|
||||
return current.id
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user