From 802dcd5bddd46aa8d9b759e7bded51dd2b80cd5c Mon Sep 17 00:00:00 2001 From: Fletcher Dunn Date: Wed, 16 Dec 2020 19:03:34 -0800 Subject: [PATCH] Tweak comments --- .../clientlib/steamnetworkingsockets_p2p.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_p2p.cpp b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_p2p.cpp index 7b94545..2e619ab 100644 --- a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_p2p.cpp +++ b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_p2p.cpp @@ -547,15 +547,17 @@ void CSteamNetworkConnectionP2P::CheckInitICE() SteamNetworkingMicroseconds usecNow = SteamNetworkingSockets_GetLocalTimestamp(); + // Initialize ICE. + // WARNING: if this fails, it might set m_pTransportICE=NULL m_pTransportICE = new CConnectionTransportP2PICE( *this ); m_pTransportICE->Init(); - // Process rendezvous messages that were pended + // Process any rendezvous messages that were pended for ( int i = 0 ; i < len( m_vecPendingICEMessages ) && m_pTransportICE ; ++i ) m_pTransportICE->RecvRendezvous( m_vecPendingICEMessages[i], usecNow ); m_vecPendingICEMessages.clear(); - // If we failed, go ahead and cleanup now + // If we have failed here, go ahead and cleanup now CheckCleanupICE(); // If we're still all good, then add it to the list of options