Skip to content

Commit

Permalink
Merge pull request #56 from trcjr/master
Browse files Browse the repository at this point in the history
Catch AggregateException so we don't die.
  • Loading branch information
NecronomiconCoding authored Jul 22, 2016
2 parents 666d4ee + 4eeb850 commit 949c4ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PokemonGo.RocketAPI.Logic/Logic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ public async Task Execute()
Logger.Write("InvalidResponseException - Restarting", LogLevel.Error);
await Execute();
}
catch (AggregateException)
{
Logger.Write("AggregateException - Restarting", LogLevel.Error);
await Execute();
}
await Task.Delay(10000);
}
}
Expand Down

0 comments on commit 949c4ab

Please sign in to comment.