don't remember devid unless it's valid

This commit is contained in:
Eric House 2013-07-17 21:33:36 -07:00
parent 93a7c7f817
commit 1d5cf0bea7

View file

@ -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;