router: release lock on failure to unblock UI
This commit is contained in:
parent
1996f8c2d7
commit
f041f01895
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user