Skip to content

Commit 550b6ab

Browse files
committed
push some changes
1 parent a093670 commit 550b6ab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

server/script/await.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ function m.close(id)
8585
return
8686
end
8787
for co in pairs(map) do
88-
map[co] = nil
89-
coroutine.close(co)
88+
if pcall(coroutine.close, co) then
89+
map[co] = nil
90+
end
9091
end
9192
end
9293

server/script/workspace/workspace.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ end
330330

331331
function m.load(uri)
332332
if files.isLua(uri) then
333+
await.delay()
333334
local text = util.loadFile(furi.decode(uri))
334335
if text then
335336
files.setText(uri, text, false)

0 commit comments

Comments
 (0)