From 1d5cf0bea7497fd1d51b149683cf62a259e3ca42 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 17 Jul 2013 21:33:36 -0700 Subject: [PATCH] don't remember devid unless it's valid --- xwords4/relay/cref.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xwords4/relay/cref.cpp b/xwords4/relay/cref.cpp index dd33123f4..ee3c92b9b 100644 --- a/xwords4/relay/cref.cpp +++ b/xwords4/relay/cref.cpp @@ -908,6 +908,7 @@ CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp, // does client support devID if ( ID_TYPE_NONE != devIDType ) { devID = DBMgr::Get()->RegisterDevice( evt->u.con.devID ); + DevMgr::Get()->Remember( devID, &evt->addr ); } *devIDp = devID; } @@ -917,8 +918,6 @@ CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp, evt->u.con.clientVersion, nPlayersH, seed, &evt->addr, devID, reconn ); - DevMgr::Get()->Remember( devID, &evt->addr ); - HostID hostid = evt->u.con.srcID; if ( NULL != hidp ) { *hidp = hostid;