Skip to content

Commit

Permalink
Increase delay to 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed Jun 24, 2024
1 parent 5d0964d commit a88ae58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/EventHandlers/MqttEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private async void OnIsarStatus(object? sender, MqttReceivedArgs mqttArgs)

if (robot.Status == isarStatus.Status) { return; }

if (await missionRunService.OngoingLocalizationMissionRunExists(robot.Id)) Thread.Sleep(2000); // Give localization mission update time to complete
if (await missionRunService.OngoingLocalizationMissionRunExists(robot.Id)) Thread.Sleep(5000); // Give localization mission update time to complete
var preUpdatedRobot = await robotService.ReadByIsarId(isarStatus.IsarId);
if (preUpdatedRobot == null)
{
Expand Down

0 comments on commit a88ae58

Please sign in to comment.