Skip to content

Commit 89a1944

Browse files
committed
must wait for other scopes to add library
1 parent 12245cf commit 89a1944

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

script/workspace/workspace.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ function m.awaitPreload(scp)
304304
watchers[#watchers+1] = fw.watch(furi.decode(libMatcher.uri))
305305
end
306306

307+
-- must wait for other scopes to add library
308+
await.sleep(0.1)
309+
307310
log.info(('Found %d files at:'):format(ld.max), scp:getName())
308311
ld:loadAll()
309312
log.info('Preload finish at:', scp:getName())

0 commit comments

Comments
 (0)