From 66188c92f559cffe5ee188b802193f8a87e01667 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sat, 13 Jul 2024 12:15:03 +0200 Subject: [PATCH] Fixes #934 --- server/server_system.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/server_system.ts b/server/server_system.ts index 7861e215..c58b6e3f 100644 --- a/server/server_system.ts +++ b/server/server_system.ts @@ -116,9 +116,14 @@ export class ServerSystem extends CommonSystem { this.eventHook.addLocalListener( "file:spaceSnapshotted", - (snapshot: Record) => { + async (snapshot: Record) => { // 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 + } }, );