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