update-ids-ruleset: Release ids_page_lock when the downloaderfails.

Message ID 20190520180622.3895-1-stefan.schantl@ipfire.org
State Accepted
Commit 84227f7a1c1b5093c01a0cabd6160d82197ee04b
Headers
Series update-ids-ruleset: Release ids_page_lock when the downloaderfails. |

Commit Message

Stefan Schantl May 21, 2019, 4:06 a.m. UTC
  Fixes #12085.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 src/scripts/update-ids-ruleset | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

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