placer1: Unlock even if placement fails

Prevents a hang during routing when using --force

Fixes #462

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-06-29 16:39:31 +01:00
parent 929a1cc7e4
commit 32e655d0af

View File

@ -1256,6 +1256,7 @@ bool placer1(Context *ctx, Placer1Cfg cfg)
#ifndef NDEBUG #ifndef NDEBUG
ctx->check(); ctx->check();
#endif #endif
ctx->unlock();
return false; return false;
} }
} }
@ -1276,6 +1277,7 @@ bool placer1_refine(Context *ctx, Placer1Cfg cfg)
#ifndef NDEBUG #ifndef NDEBUG
ctx->check(); ctx->check();
#endif #endif
ctx->unlock();
return false; return false;
} }
} }