mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
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:
parent
7a90f71d41
commit
00575c6d4e
1 changed files with 12 additions and 12 deletions
|
@ -146,19 +146,19 @@ public class GameSummary {
|
|||
String result = null;
|
||||
if ( isRelayGame() ) {
|
||||
|
||||
Assert.assertTrue( CommsAddrRec.CommsConnType.COMMS_CONN_RELAY
|
||||
== conType );
|
||||
int fmtID;
|
||||
if ( null == relayID || 0 == relayID.length() ) {
|
||||
fmtID = R.string.summary_relay_conff;
|
||||
} else if ( anyMissing() ) {
|
||||
fmtID = R.string.summary_relay_waitf;
|
||||
} else if ( gameOver ) {
|
||||
fmtID = R.string.summary_relay_gameoverf;
|
||||
} else {
|
||||
fmtID = R.string.summary_relay_connf;
|
||||
if ( CommsAddrRec.CommsConnType.COMMS_CONN_RELAY == conType ) {
|
||||
int fmtID;
|
||||
if ( null == relayID || 0 == relayID.length() ) {
|
||||
fmtID = R.string.summary_relay_conff;
|
||||
} else if ( anyMissing() ) {
|
||||
fmtID = R.string.summary_relay_waitf;
|
||||
} else if ( gameOver ) {
|
||||
fmtID = R.string.summary_relay_gameoverf;
|
||||
} else {
|
||||
fmtID = R.string.summary_relay_connf;
|
||||
}
|
||||
result = String.format( m_context.getString(fmtID), roomName );
|
||||
}
|
||||
result = String.format( m_context.getString(fmtID), roomName );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue