From 56454d734b6ec6911f5eddcaefd5916b099fe1c8 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 3 Sep 2005 15:41:59 +0000 Subject: [PATCH] add missing state transition --- relay/states.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/relay/states.cpp b/relay/states.cpp index 6b7c51064..5834a1457 100644 --- a/relay/states.cpp +++ b/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 },