Fix server hickup handling and retry

FeroxRev [2016-07-19 19:35:23]
Fix server hickup handling and retry
Filename
PokemonGo/RocketAPI/Helpers/RetryHandler.cs
diff --git a/PokemonGo/RocketAPI/Helpers/RetryHandler.cs b/PokemonGo/RocketAPI/Helpers/RetryHandler.cs
index 4382dec..f8f4113 100644
--- a/PokemonGo/RocketAPI/Helpers/RetryHandler.cs
+++ b/PokemonGo/RocketAPI/Helpers/RetryHandler.cs
@@ -24,7 +24,9 @@ namespace PokemonGo.RocketAPI.Helpers
             {
                 try
                 {
-                    return await base.SendAsync(request, cancellationToken);
+                    var response = await base.SendAsync(request, cancellationToken);
+                    response.EnsureSuccessStatusCode();
+                    return response;
                 }
                 catch (Exception ex)
                 {
You may download the files in Public Git.