From e62bd45298529afaab8aaac9ced332147f908f35 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 8 Jan 2024 16:53:01 +0100 Subject: [PATCH] wip #6615 @0.25 --- app/Fluidbook/Farm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Fluidbook/Farm.php b/app/Fluidbook/Farm.php index 37178c9a8..43755b5f6 100644 --- a/app/Fluidbook/Farm.php +++ b/app/Fluidbook/Farm.php @@ -213,7 +213,9 @@ class Farm } touch($lockFile); $res = $callback(); - unlink($lockFile); + if (file_exists($lockFile)) { + @unlink($lockFile); + } return $res; } -- 2.39.5