mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
don't remember devid unless it's valid
This commit is contained in:
parent
93a7c7f817
commit
1d5cf0bea7
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue