Skip to content

Commit

Permalink
Fix incorrect nonempty check in ICE initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer authored and zpostfacto committed Jun 16, 2022
1 parent ef4ed2e commit 505c697
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void CSteamNetworkConnectionP2P::CheckInitICE()
V_AllocAndSplitString( m_connectionConfig.m_P2P_TURN_PassList.Get().c_str(), ",", vecTurnPasses, true );

// If turn arrays lengths (servers, users and passes) are not match, treat all TURN servers as unauthenticated
if ( !vecTurnUsers.IsEmpty() > 0 || !vecTurnPasses.IsEmpty() )
if ( !vecTurnUsers.IsEmpty() || !vecTurnPasses.IsEmpty() )
{
if ( cfg.m_nTurnServers != vecTurnUsers.Count() || cfg.m_nTurnServers != vecTurnPasses.Count() )
{
Expand Down

0 comments on commit 505c697

Please # to comment.