From 8d70134d1adba4d787476ded970ee40ab18d1622 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 17 Jun 2019 14:37:09 +0200 Subject: T1431: release the lock even if discard() caused an exception. It may be better to crash the process in that situation. --- src/services/vyos-http-api-server | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/services/vyos-http-api-server') diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server index 32f8adc73..7b9e3d671 100755 --- a/src/services/vyos-http-api-server +++ b/src/services/vyos-http-api-server @@ -135,8 +135,9 @@ def configure(): # Don't give the details away to the outer world error_msg = "An internal error occured. Check the logs for details." + finally: + lock.release() - lock.release() if status != 200: return error(status, error_msg) else: -- cgit v1.2.3