13
0

TransportFSM: set _last_locate when doing an interrupted locate

This commit is contained in:
Paul Davis 2020-11-12 18:36:53 -07:00
parent ab6a1d062d
commit ef4d825232
2 changed files with 2 additions and 1 deletions

View File

@ -198,7 +198,7 @@ struct TransportFSM
void process_events ();
bool process_event (Event&, bool was_deferred, bool& deferred);
Event _last_locate;
mutable Event _last_locate;
Event last_speed_request;
TransportAPI* api;

View File

@ -557,6 +557,7 @@ TransportFSM::interrupt_locate (Event const & l) const
/* maintain original "with-roll" choice of initial locate, even though
* we are interrupting the locate to start a new one.
*/
_last_locate = l;
api->locate (l.target, false, l.with_flush, l.for_loop_end, l.force);
}