From 01e50f51b77c718439e677eedaba9ed61c2b3b24 Mon Sep 17 00:00:00 2001 From: eehouse Date: Mon, 8 Feb 2010 13:21:54 +0000 Subject: [PATCH] fix bug: don't close socket on duplicate connect message. Just drop it as is done with dup reconnect message. --- xwords4/relay/cref.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/xwords4/relay/cref.cpp b/xwords4/relay/cref.cpp index fecc451a0..0dd4ab206 100644 --- a/xwords4/relay/cref.cpp +++ b/xwords4/relay/cref.cpp @@ -193,6 +193,7 @@ CookieRef::_Connect( int socket, HostID hid, int nPlayersH, int nPlayersS, connected = HasSocket_locked( socket ); } else { logf( XW_LOGINFO, "dropping connect event; already connected" ); + connected = true; /* don't close socket on dup packet, just drop */ } return connected; }