- if(r && !cur_blocks.empty())
- {
- BlockRef &last = (rsv_blocks.empty() ? cur_blocks.back() : rsv_blocks.back());
- BlockRef next = last.next();
- const Block::Endpoint &ep = next.block->get_endpoints()[next.entry];
- if(!r->get_tracks().count(ep.track))
- routes.push_front(Route::find(*ep.track, ep.track_ep, *r));
-
- /* XXX This is sort of a hack, but it keeps divert() happy. Need to come
- up with a better solution when there is time. */
- routes.push_front(create_lead_route());
- }
-