From 81fd36c40554667be9ea0b0e99b79390b257217b Mon Sep 17 00:00:00 2001 From: Raphael Guntersweiler Date: Sat, 31 Oct 2020 21:24:34 +0100 Subject: [PATCH] Changed back to .TryAdd() as requested --- DepotDownloader.Core/DepotDownloader.Core.csproj | 2 +- DepotDownloader.Core/Steam3Session.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DepotDownloader.Core/DepotDownloader.Core.csproj b/DepotDownloader.Core/DepotDownloader.Core.csproj index c2112811..572001e3 100644 --- a/DepotDownloader.Core/DepotDownloader.Core.csproj +++ b/DepotDownloader.Core/DepotDownloader.Core.csproj @@ -1,7 +1,7 @@ - netstandard2.0 + netstandard2.1 LICENSE SteamRE et al. SteamRE et al diff --git a/DepotDownloader.Core/Steam3Session.cs b/DepotDownloader.Core/Steam3Session.cs index e3d34ecb..2319baa6 100644 --- a/DepotDownloader.Core/Steam3Session.cs +++ b/DepotDownloader.Core/Steam3Session.cs @@ -649,7 +649,7 @@ namespace DepotDownloader.Core { if ( license.AccessToken > 0 ) { - PackageTokens.Add(license.PackageID, license.AccessToken); + PackageTokens.TryAdd(license.PackageID, license.AccessToken); } } }