Inverted logic in auth caching

P4:7320764
This commit is contained in:
Fletcher Dunn
2022-06-14 11:42:35 -07:00
parent 3f2cc6ea76
commit 78481e083d
@@ -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 );