From 8b34f57bf9fdb1d5a12a63c2b22483ae53b90ddc Mon Sep 17 00:00:00 2001 From: ehouse Date: Mon, 21 Mar 2005 05:30:55 +0000 Subject: [PATCH] don't kill socket when client connects before server --- xwords4/relay/xwrelay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xwords4/relay/xwrelay.cpp b/xwords4/relay/xwrelay.cpp index 75ef351a8..79028b92c 100644 --- a/xwords4/relay/xwrelay.cpp +++ b/xwords4/relay/xwrelay.cpp @@ -197,6 +197,9 @@ forwardMessage( unsigned char* buf, int bufLen ) *buf = XWRELAY_MSG_FROMRELAY; send_with_length( socket, buf, bufLen ); success = 1; + } else if ( dest == HOST_ID_SERVER ) { + logf( "server not connected yet; fail silently" ); + success = 1; } } return success;