define and handle new other-was-deleted error relay is about to start

returning.
This commit is contained in:
Andy2 2010-11-11 06:23:48 -08:00
parent e3f373039a
commit cf84cce41a
3 changed files with 10 additions and 0 deletions

View file

@ -311,6 +311,10 @@
<string name="msg_dup_room">Another host has already registered a room using that name. Rename yours or retry later.</string>
<string name="msg_lost_other">The relay has lost contact with another device in this game.</string>
<string name="msg_dev_deleted">One of the devices in this game has
deleted the game. You will not be able to play any
further.</string>
<string name="ids_badwords">Word[s] %s not found in dictionary.</string>
<string name="badwords_accept"> Do you still want to accept this move?</string>
<string name="badwords_lost"> Turn lost.</string>

View file

@ -409,6 +409,11 @@ public class CommsTransport extends Thread implements TransportProcs {
strID = R.string.msg_lost_other;
break;
case DELETED:
strID = R.string.msg_dev_deleted;
how = DIALOG;
break;
case OLDFLAGS:
case BADPROTO:
case RELAYBUSY:

View file

@ -47,6 +47,7 @@ public interface TransportProcs {
,NO_ROOM
,DUP_ROOM
,TOO_MANY
,DELETED
};
void relayErrorProc( XWRELAY_ERROR relayErr );
}