From f4a7478a406c841d7938985ee5611fbf73aa7b02 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 26 Jul 2018 16:45:57 +0200 Subject: Fix router1 locking in NDEBUG builds Signed-off-by: Clifford Wolf --- common/router1.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/router1.cc') diff --git a/common/router1.cc b/common/router1.cc index fbf3c467..8a05236f 100644 --- a/common/router1.cc +++ b/common/router1.cc @@ -810,14 +810,14 @@ bool router1(Context *ctx) log_info("Checksum: 0x%08x\n", ctx->checksum()); #ifndef NDEBUG ctx->check(); - ctx->unlock(); #endif + ctx->unlock(); return true; } catch (log_execution_error_exception) { #ifndef NDEBUG ctx->check(); - ctx->unlock(); #endif + ctx->unlock(); return false; } } -- cgit v1.2.3