Merge pull request #764 from pgroene/patch-2

Brian [2016-08-02 14:07:21]
Merge pull request #764 from pgroene/patch-2

add wait for client.GetMapObjects()
Filename
PokemonGo/RocketAPI/Window/MainForm.cs
diff --git a/PokemonGo/RocketAPI/Window/MainForm.cs b/PokemonGo/RocketAPI/Window/MainForm.cs
index 97acf92..dcd55e6 100644
--- a/PokemonGo/RocketAPI/Window/MainForm.cs
+++ b/PokemonGo/RocketAPI/Window/MainForm.cs
@@ -415,6 +415,8 @@ namespace PokemonGo.RocketAPI.Window

         private async Task ExecuteCatchAllNearbyPokemons(Client client)
         {
+            await Task.Delay(3000);
+
             var mapObjects = await client.GetMapObjects();

             var pokemons = mapObjects.MapCells.SelectMany(i => i.CatchablePokemons);
You may download the files in Public Git.