public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] update-ids-ruleset: Release ids_page_lock when the downloader fails.
@ 2019-05-20 18:06 Stefan Schantl
  0 siblings, 0 replies; only message in thread
From: Stefan Schantl @ 2019-05-20 18:06 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

Fixes #12085.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 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;
 }
-- 
2.20.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-20 18:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-20 18:06 [PATCH] update-ids-ruleset: Release ids_page_lock when the downloader fails Stefan Schantl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox