Hopefully finally squashed the race condition that would randomly reload files

This commit is contained in:
Zef Hemel
2023-11-20 17:08:29 +01:00
parent d388796b1c
commit 79611a27e0
2 changed files with 104 additions and 68 deletions
+5 -2
View File
@@ -53,8 +53,11 @@ export class PlugSpacePrimitives implements SpacePrimitives {
for (const pm of await plug.invoke(name, [])) {
allFiles.push(pm);
}
} catch (e) {
console.error("Error listing files", e);
} catch (e: any) {
if (!e.message.includes("not available")) {
// Don't report "not available in" environments errors
console.error("Error listing files", e);
}
}
}
}