mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-13 20:48:02 +01:00
fix failure to notify relay of half-game deletion
Wasn't detecting as a relay game something registered on relay but not yet joined by another device, a common case!
This commit is contained in:
parent
6b0fe35c8f
commit
da3f6db9e4
1 changed files with 9 additions and 1 deletions
|
@ -1196,7 +1196,7 @@ public class GameUtils {
|
||||||
for ( CommsConnType typ : conTypes ) {
|
for ( CommsConnType typ : conTypes ) {
|
||||||
switch ( typ ) {
|
switch ( typ ) {
|
||||||
case COMMS_CONN_RELAY:
|
case COMMS_CONN_RELAY:
|
||||||
tellRelayDied( context, summary, informNow );
|
// see below
|
||||||
break;
|
break;
|
||||||
case COMMS_CONN_BT:
|
case COMMS_CONN_BT:
|
||||||
BTService.gameDied( context, addr.bt_btAddr, gameID );
|
BTService.gameDied( context, addr.bt_btAddr, gameID );
|
||||||
|
@ -1210,6 +1210,14 @@ public class GameUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// comms doesn't have a relay address for us until the game's
|
||||||
|
// in play (all devices registered, at least.) To enable
|
||||||
|
// deleting on relay half-games that we created but nobody
|
||||||
|
// joined, special-case this one.
|
||||||
|
if ( summary.inRelayGame() ) {
|
||||||
|
tellRelayDied( context, summary, informNow );
|
||||||
|
}
|
||||||
|
|
||||||
gamePtr.release();
|
gamePtr.release();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue