From a52fc5a4fdf8da440b4b9d98c652c11dc5c91318 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 15 Jul 2010 18:21:32 -0700 Subject: [PATCH] don't call removeSocket when none was added --- xwords4/relay/cref.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/relay/cref.cpp b/xwords4/relay/cref.cpp index 327a37668..57cf20d45 100644 --- a/xwords4/relay/cref.cpp +++ b/xwords4/relay/cref.cpp @@ -328,7 +328,8 @@ CookieRef::removeSocket( int socket ) } } } else { - logf( XW_LOGERROR, "%s: no socket %d to remove", __func__, socket ); + logf( XW_LOGERROR, "%s: no socket %d to remove", __func__, + socket ); } } @@ -555,7 +556,6 @@ CookieRef::handleEvents() case XWA_SEND_NO_ROOM: send_denied( &evt, XWRELAY_ERROR_NO_ROOM ); - removeSocket( evt.u.rmsock.socket ); break; case XWA_SEND_DUP_ROOM: send_denied( &evt, XWRELAY_ERROR_DUP_ROOM );