From f041f0189597d10fee7e2ecb8bfdb3324dea3a43 Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Wed, 1 Aug 2018 11:53:52 +0100 Subject: router: release lock on failure to unblock UI --- common/router1.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/router1.cc b/common/router1.cc index d35a7621..46be444e 100644 --- a/common/router1.cc +++ b/common/router1.cc @@ -588,6 +588,7 @@ bool router1(Context *ctx) if (jobQueue.empty()) { log_info("found no unrouted source-sink pairs. no routing necessary.\n"); + ctx->unlock(); return true; } @@ -602,6 +603,7 @@ bool router1(Context *ctx) #ifndef NDEBUG ctx->check(); #endif + ctx->unlock(); return false; } @@ -807,6 +809,7 @@ bool router1(Context *ctx) } log_info("Checksum: 0x%08x\n", ctx->checksum()); ctx->check(); + ctx->unlock(); return false; } #endif -- cgit v1.2.3