Skip to content

Commit

Permalink
Fix platform reset to recover from being stuck.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysticial committed Sep 22, 2023
1 parent a033c35 commit 78a548d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,12 @@ void ShinyHuntAreaZeroPlatform::run_state(SingleSwitchProgramEnvironment& env, B
return;
case Location::AREA_ZERO:
console.log("Executing: Traversal...");
run_traversal(context);
try{
run_traversal(context);
}catch (OperationFailedException&){
m_pending_platform_reset = true;
throw;
}
m_encounter_tracker->reset_rate_tracker_start_time();
m_consecutive_failures = 0;
return;
Expand Down

0 comments on commit 78a548d

Please sign in to comment.