From patchwork Tue May 21 04:06:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 2260 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id A4B7585218B for ; Mon, 20 May 2019 19:06:29 +0100 (BST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 4576KJ3Nh1z51sGJ; Mon, 20 May 2019 19:06:28 +0100 (BST) Received: from tuxedo.stevee (213162073040.public.t-mobile.at [213.162.73.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4576KF0V79z51sG1; Mon, 20 May 2019 19:06:24 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904rsa; t=1558375585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pYMoDcio2TfRy48ME0D7H9lLaNAFl3Cjr+Ph3LzfjZ4=; b=CVCntnfBOC2Zm8HXsS0ago8VPwS2BO3YWGb+5W4+In/rV29xczRaxQnFUa7E+H5/uwZC/e QTnzwTHIXUylJbfsJh2TbHvqIChd/NP0wyWlj19K2LSOe/eVXIP9Q92lao6mzFQqpF6vG+ MeCWPYCXXfO7rbgECOBBL8a8woSPtZfh9Y6GEzI4cbdAVgYEIkiyhZq0fAByDhaUPsQBss EAEVFb40uzcVlDLOVd1QkmM/qS5lvmBwhgSBcFGhNOWvZa1t+YlYQpo6yvwfWM+xgNtZjI uY1yLXdRJw+/rHDK+DgLR3KrABVUArbUgOy3etoJWnwVleEFRz73Lvn1S84e8w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904ed25519; t=1558375585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pYMoDcio2TfRy48ME0D7H9lLaNAFl3Cjr+Ph3LzfjZ4=; b=pLEOyabV3c8MAVakZeNV5OTfmL6y4USXigYwLH41CTVZ0kb8cjMNnAaAvd0OpkOGFQVrvl XS7A/u97sTqe7sDQ== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] update-ids-ruleset: Release ids_page_lock when the downloader fails. Date: Mon, 20 May 2019 20:06:22 +0200 Message-Id: <20190520180622.3895-1-stefan.schantl@ipfire.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=stevee smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Fixes #12085. Signed-off-by: Stefan Schantl --- src/scripts/update-ids-ruleset | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/update-ids-ruleset b/src/scripts/update-ids-ruleset index f28a8c156..956c3a1f5 100644 --- a/src/scripts/update-ids-ruleset +++ b/src/scripts/update-ids-ruleset @@ -54,6 +54,9 @@ if(&IDS::downloadruleset()) { # Store error message for displaying in the WUI. &IDS::_store_error_message("$Lang::tr{'could not download latest updates'}"); + # Unlock the IDS page. + &IDS::unlock_ids_page(); + # Exit. exit 0; }