From 4481da8b54bba32b338befd509360816b08402e5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 30 Jun 2013 23:32:19 +0300 Subject: [PATCH] Don't continue reserving until the turnout is done changing its path --- source/libr2c2/blockallocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libr2c2/blockallocator.cpp b/source/libr2c2/blockallocator.cpp index ff5776d..022a8df 100644 --- a/source/libr2c2/blockallocator.cpp +++ b/source/libr2c2/blockallocator.cpp @@ -152,7 +152,7 @@ void BlockAllocator::reserve_more() else if(&*start==pending_block) { TrackIter track = start.track_iter(); - if(!track.endpoint().has_path(track->get_active_path())) + if(track->is_path_changing() || !track.endpoint().has_path(track->get_active_path())) return; } -- 2.43.0