From dea147342464623fa63f0425407e0ab622ac0807 Mon Sep 17 00:00:00 2001 From: OpenClaw Agent Date: Thu, 17 Sep 2026 02:31:05 +0800 Subject: [PATCH] fix: recover stale shared asset locks --- assets.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets.go b/assets.go index ebb1cc2..2074be5 100644 --- a/assets.go +++ b/assets.go @@ -83,7 +83,9 @@ func (a *App) acquireAsset(t *Task) (*MediaAsset, bool, error) { return err } if current.Status == "downloading" && current.OwnerTaskID != t.ID { - return nil + if current.UpdatedAt.After(time.Now().Add(-10 * time.Minute)) { + return nil + } } current.Status, current.OwnerTaskID = "downloading", t.ID if current.LocalPath == "" {