Fixed a bug that prevented the autorouter to stop if post-routing is enabled

This commit is contained in:
Andras Fuchs 2020-02-04 22:13:59 +01:00
parent 625cf4e9ee
commit 038f8a8626
1 changed files with 2 additions and 0 deletions

View File

@ -128,12 +128,14 @@ public class BatchAutorouter
if (already_checked_board_hashes.contains(current_board_hash))
{
FRLogger.logger.warn("This board was already evaluated, so we stop autorouter to avoid the endless loop.");
thread.request_stop();
break;
}
Integer curr_pass_no = hdlg.get_settings().autoroute_settings.get_start_pass_no();
if (curr_pass_no > hdlg.get_settings().autoroute_settings.get_stop_pass_no())
{
thread.request_stop();
break;
}