From: Mikko Rasa Date: Sun, 30 Jun 2013 20:32:19 +0000 (+0300) Subject: Don't continue reserving until the turnout is done changing its path X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4481da8b54bba32b338befd509360816b08402e5;p=r2c2.git Don't continue reserving until the turnout is done changing its path --- 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; }