From 4479933657164cec4e249108f8bf7401b22e672b Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 3 Sep 2005 15:41:59 +0000 Subject: [PATCH] add missing state transition --- xwords4/relay/states.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 },