From 98375f23ef54f9a3295185ac80f33bf1ba2ebfe4 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Mon, 5 Jun 2023 03:03:07 +0800 Subject: [PATCH] release lock before warn --- public/announce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/announce.php b/public/announce.php index 153c5bfc..f9d6029a 100644 --- a/public/announce.php +++ b/public/announce.php @@ -461,8 +461,8 @@ if (!isset($self)) } catch (\Exception $exception) { $msg = $exception->getMessage(); do_log("[ANNOUNCE] user: $userid, torrent: $torrentid, $msg " . $exception->getTraceAsString(), 'error'); - warn($msg); $lock->release(); + warn($msg); } } }