]> git.tdb.fi Git - r2c2.git/commitdiff
Don't continue reserving until the turnout is done changing its path
authorMikko Rasa <tdb@tdb.fi>
Sun, 30 Jun 2013 20:32:19 +0000 (23:32 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 30 Jun 2013 20:32:19 +0000 (23:32 +0300)
source/libr2c2/blockallocator.cpp

index ff5776d3281f1b166af785b708b2e4e0a267424d..022a8df230ee72e8e2185e36624ac13f5928b64b 100644 (file)
@@ -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;
        }