From 918f6b92a82702bb54871943610b29e351eeda58 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Thu, 14 May 2020 21:45:40 +0300 Subject: [PATCH] Remove ContinueWith debug log in webapi Fixes #784 --- SteamKit2/SteamKit2/Steam/WebAPI/WebAPI.cs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/SteamKit2/SteamKit2/Steam/WebAPI/WebAPI.cs b/SteamKit2/SteamKit2/Steam/WebAPI/WebAPI.cs index 2818ad530..3cf092559 100644 --- a/SteamKit2/SteamKit2/Steam/WebAPI/WebAPI.cs +++ b/SteamKit2/SteamKit2/Steam/WebAPI/WebAPI.cs @@ -210,24 +210,7 @@ internal AsyncInterface( HttpClient httpClient, string iface, string apiKey ) /// An network error occurred when performing the request. /// A network error occurred when performing the request. /// An error occured when parsing the response from the WebAPI. - public Task CallAsync( HttpMethod method, string func, int version = 1, Dictionary? args = null ) - { - var task = CallAsyncCore( method, func, version, args ); - - task.ContinueWith( t => - { - // we need to observe the exception in this OnlyOnFaulted continuation if our task throws an exception but we're not able to observe it - // (such as when waiting for the task times out, and an exception is thrown later) - // see: http://msdn.microsoft.com/en-us/library/dd997415.aspx - - DebugLog.WriteLine("WebAPI", "Threw an unobserved exception: {0}", t.Exception); - - }, TaskContinuationOptions.OnlyOnFaulted ); - - return task; - } - - async Task CallAsyncCore( HttpMethod method, string func, int version = 1, Dictionary? args = null ) + public async Task CallAsync( HttpMethod method, string func, int version = 1, Dictionary? args = null ) { if ( method == null ) {