We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a093670 commit 550b6abCopy full SHA for 550b6ab
server/script/await.lua
@@ -85,8 +85,9 @@ function m.close(id)
85
return
86
end
87
for co in pairs(map) do
88
- map[co] = nil
89
- coroutine.close(co)
+ if pcall(coroutine.close, co) then
+ map[co] = nil
90
+ end
91
92
93
server/script/workspace/workspace.lua
@@ -330,6 +330,7 @@ end
330
331
function m.load(uri)
332
if files.isLua(uri) then
333
+ await.delay()
334
local text = util.loadFile(furi.decode(uri))
335
if text then
336
files.setText(uri, text, false)
0 commit comments