From 78481e083d02e5bcbb6d49f392f413ba7484b023 Mon Sep 17 00:00:00 2001 From: Fletcher Dunn Date: Tue, 14 Jun 2022 11:42:35 -0700 Subject: [PATCH] Inverted logic in auth caching P4:7320764 --- .../clientlib/csteamnetworkingsockets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp b/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp index 3478f50..e4b0d49 100644 --- a/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp +++ b/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp @@ -828,7 +828,7 @@ void CSteamNetworkingSockets::ResetIdentity( const SteamNetworkingIdentity *pIde if ( pIdentity ) { m_identity = *pIdentity; - if ( m_identity.IsInvalid() || m_identity.IsLocalHost() ) + if ( !m_identity.IsInvalid() && !m_identity.IsLocalHost() ) { int nIdentitySetFlags = k_nIdentitySetFlag_NoSave; // Allow us to check the durable cache for any credentials, but we know we are empty, so don't save anything InternalOnGotIdentity( nIdentitySetFlags );