Skip to content

Commit 4eaadda

Browse files
committed
Change an assert to use a warning
P4:10010414,10010418 (cherry picked from commit cd00b5e)
1 parent a246ee3 commit 4eaadda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/steamnetworkingsockets/clientlib/steamnetworkingsockets_lowlevel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,15 +852,15 @@ bool IsRouteToAddressProbablyLocal( netadr_t addr )
852852
);
853853
if ( r != NO_ERROR )
854854
{
855-
AssertMsg2( false, "GetBestRoute2 failed with result %d for address '%s'", r, CUtlNetAdrRender( addr ).String() );
855+
SpewWarning( "GetBestRoute2 failed with result %d for address '%s'\n", r, CUtlNetAdrRender( addr ).String() );
856856
return false;
857857
}
858858
if ( bestRoute.Protocol == MIB_IPPROTO_LOCAL )
859859
return true;
860860
netadr_t nextHop;
861861
if ( !nextHop.SetFromSockadr( &bestRoute.NextHop ) )
862862
{
863-
AssertMsg( false, "GetBestRoute2 returned invalid next hop address" );
863+
SpewWarning( "GetBestRoute2 returned invalid next hop address\n" );
864864
return false;
865865
}
866866

0 commit comments

Comments
 (0)