diff --git a/xwords4/relay/states.cpp b/xwords4/relay/states.cpp index 6b7c51064..5834a1457 100644 --- a/xwords4/relay/states.cpp +++ b/xwords4/relay/states.cpp @@ -96,7 +96,10 @@ StateTable g_stateTable[] = { { XW_ST_CONNECTING, XW_EVENT_HEARTMSG, XW_ACTION_NOTEHEART, XW_ST_CONNECTING }, { XW_ST_ALLCONNECTED, XW_EVENT_HEARTMSG, XW_ACTION_NOTEHEART, XW_ST_ALLCONNECTED }, - { XW_ST_CONNECTING, XW_EVENT_NOTIFYDISCON, XW_ACTION_NOTIFYDISCON, XW_ST_DEAD }, + /* I think we need a state XW_ST_SOMEMISSING. The game can't be played, + but we're open to XWRELAY_RECONNECT (but not to XWRELAY_CONNECT) */ + { XW_ST_CONNECTING, XW_EVENT_NOTIFYDISCON, XW_ACTION_NOTIFYDISCON, XW_ST_CONNECTING }, + { XW_ST_ALLCONNECTED, XW_EVENT_NOTIFYDISCON, XW_ACTION_NOTIFYDISCON, XW_ST_ALLCONNECTED }, { XW_ST_DEAD, XW_EVENT_NOTIFYDISCON, XW_ACTION_NOTIFYDISCON, XW_ST_DEAD }, { XW_ST_DEAD, XW_EVENT_REMOVESOCKET, XW_ACTION_REMOVESOCKET, XW_ST_DEAD },