Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
tweak(Felamimail/AttachmentCache): don't fail on releaseMultiServerLock
Browse files Browse the repository at this point in the history
... when there are no locked locks during "finally" cleanup
  • Loading branch information
pschuele committed Feb 13, 2023
1 parent c044bf7 commit 4a7d3b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tine20/Felamimail/Controller/AttachmentCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,11 @@ public function fillAttachmentCache(array $accountIds, ?int $seconds = null): vo
}
} finally {
Tinebase_FileSystem::getInstance()->_getTreeNodeBackend()->doSynchronousPreviewCreation($old);
Tinebase_Core::releaseMultiServerLock($lockKey);
try {
Tinebase_Core::releaseMultiServerLock($lockKey);
} catch (Tinebase_Exception_Backend $teb) {
Tinebase_Core::getLogger()->notice(__METHOD__ . '::' . __LINE__ . ' ' . $teb->getMessage());
}
}
}
}

0 comments on commit 4a7d3b9

Please sign in to comment.