From b91187d6a57915d72c47c3f81e31ea631b61fc6c Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 16 Nov 2010 20:30:43 -0800 Subject: [PATCH] test result when parsing; drop if didn't parse --- xwords4/relay/xwrelay.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xwords4/relay/xwrelay.cpp b/xwords4/relay/xwrelay.cpp index 7f3a05c64..efff3b4a9 100644 --- a/xwords4/relay/xwrelay.cpp +++ b/xwords4/relay/xwrelay.cpp @@ -742,9 +742,10 @@ handle_proxy_tproc( void* closure ) } HostID hid; char connName[MAX_CONNNAME_LEN+1]; - parseRelayID( name, connName, &hid ); - ids.push_back( DBMgr::Get()-> - PendingMsgCount( connName, hid ) ); + if ( parseRelayID( name, connName, &hid ) ) { + ids.push_back( DBMgr::Get()-> + PendingMsgCount( connName, hid ) ); + } in = NULL; }