Don't assert when don't have expected connType (likely as result of

race condition.  Just don't show the type in summary.  Likely fixes
once-seen assertion failure.
This commit is contained in:
Eric House 2012-01-17 18:48:33 -08:00
parent 7a90f71d41
commit 00575c6d4e

View file

@ -146,8 +146,7 @@ public class GameSummary {
String result = null;
if ( isRelayGame() ) {
Assert.assertTrue( CommsAddrRec.CommsConnType.COMMS_CONN_RELAY
== conType );
if ( CommsAddrRec.CommsConnType.COMMS_CONN_RELAY == conType ) {
int fmtID;
if ( null == relayID || 0 == relayID.length() ) {
fmtID = R.string.summary_relay_conff;
@ -160,6 +159,7 @@ public class GameSummary {
}
result = String.format( m_context.getString(fmtID), roomName );
}
}
return result;
}