From 5752c50d1f9d1721754e5931969c0b729c8e41d6 Mon Sep 17 00:00:00 2001 From: Matt Mazer Date: Fri, 29 Jul 2016 02:37:05 -0400 Subject: [PATCH] Fixed async warning. --- PokemonGo.RocketAPI/Login/GoogleLoginGPSOAuth.cs | 2 +- PokemonGo.RocketAPI/Rpc/Login.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PokemonGo.RocketAPI/Login/GoogleLoginGPSOAuth.cs b/PokemonGo.RocketAPI/Login/GoogleLoginGPSOAuth.cs index 4dfb8d0..4b4722e 100644 --- a/PokemonGo.RocketAPI/Login/GoogleLoginGPSOAuth.cs +++ b/PokemonGo.RocketAPI/Login/GoogleLoginGPSOAuth.cs @@ -10,7 +10,7 @@ namespace PokemonGo.RocketAPI.Login { public static class GoogleLoginGPSOAuth { - public static async Task DoLogin(string username, string password) + public static string DoLogin(string username, string password) { GPSOAuthClient client = new GPSOAuthClient(username, password); Dictionary response = client.PerformMasterLogin(); diff --git a/PokemonGo.RocketAPI/Rpc/Login.cs b/PokemonGo.RocketAPI/Rpc/Login.cs index 9eba673..d3cf3da 100644 --- a/PokemonGo.RocketAPI/Rpc/Login.cs +++ b/PokemonGo.RocketAPI/Rpc/Login.cs @@ -27,7 +27,7 @@ public async Task DoGoogleLogin(string username,string password) { _client.AuthType = AuthType.Google; - _client.AuthToken = await GoogleLoginGPSOAuth.DoLogin(username, password); + _client.AuthToken = GoogleLoginGPSOAuth.DoLogin(username, password); await SetServer(); /*