release lock before warn

This commit is contained in:
xiaomlove
2023-06-05 03:03:07 +08:00
parent 6742ae4aee
commit 98375f23ef

View File

@@ -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);
}
}
}