summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-06-17 14:37:09 +0200
committerDaniil Baturin <daniil@baturin.org>2019-06-17 14:37:09 +0200
commit8d70134d1adba4d787476ded970ee40ab18d1622 (patch)
tree54333218b24141b059c5ac0f7be7f63749de0b17 /src
parent2c12af330c51468927df3e85ca23aaf9098ff4f8 (diff)
downloadvyos-1x-8d70134d1adba4d787476ded970ee40ab18d1622.tar.gz
vyos-1x-8d70134d1adba4d787476ded970ee40ab18d1622.zip
T1431: release the lock even if discard() caused an exception.
It may be better to crash the process in that situation.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/services/vyos-http-api-server3
1 files changed, 2 insertions, 1 deletions
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: