Skip to content

Commit

Permalink
Fix the order in which delegate is notified about failed reroute attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
azarovalex committed Mar 27, 2024
1 parent d54c407 commit befcd2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/MapboxCoreNavigation/RouteController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,8 @@ extension RouteController: Router {
case let .success(indexedResponse):
let response = indexedResponse.routeResponse
guard case let .route(routeOptions) = response.options else {
announceReroutingError(with: ReroutingError.routeError)
self.isRerouting = false; return
self.isRerouting = false
return announceReroutingError(with: ReroutingError.routeError)
}
self.updateRoute(with: indexedResponse,
routeOptions: routeOptions,
Expand Down

0 comments on commit befcd2f

Please sign in to comment.