Fixes #934
parent
be8c3303a4
commit
66188c92f5
|
@ -116,9 +116,14 @@ export class ServerSystem extends CommonSystem {
|
||||||
|
|
||||||
this.eventHook.addLocalListener(
|
this.eventHook.addLocalListener(
|
||||||
"file:spaceSnapshotted",
|
"file:spaceSnapshotted",
|
||||||
(snapshot: Record<string, any>) => {
|
async (snapshot: Record<string, any>) => {
|
||||||
// console.log("Space snapshot updated");
|
// console.log("Space snapshot updated");
|
||||||
return this.ds.set(["$spaceCache"], snapshot);
|
try {
|
||||||
|
await this.ds.set(["$spaceCache"], snapshot);
|
||||||
|
} catch {
|
||||||
|
// This may fail if the space is too large, that's fine, persisting the snapshot is not critical
|
||||||
|
// EXPLIT IGNORE
|
||||||
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue