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()) {
|
if (jobQueue.empty()) {
|
||||||
log_info("found no unrouted source-sink pairs. no routing necessary.\n");
|
log_info("found no unrouted source-sink pairs. no routing necessary.\n");
|
||||||
|
ctx->unlock();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -602,6 +603,7 @@ bool router1(Context *ctx)
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
ctx->check();
|
ctx->check();
|
||||||
#endif
|
#endif
|
||||||
|
ctx->unlock();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -807,6 +809,7 @@ bool router1(Context *ctx)
|
|||||||
}
|
}
|
||||||
log_info("Checksum: 0x%08x\n", ctx->checksum());
|
log_info("Checksum: 0x%08x\n", ctx->checksum());
|
||||||
ctx->check();
|
ctx->check();
|
||||||
|
ctx->unlock();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user