mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +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
|
// does client support devID
|
||||||
if ( ID_TYPE_NONE != devIDType ) {
|
if ( ID_TYPE_NONE != devIDType ) {
|
||||||
devID = DBMgr::Get()->RegisterDevice( evt->u.con.devID );
|
devID = DBMgr::Get()->RegisterDevice( evt->u.con.devID );
|
||||||
|
DevMgr::Get()->Remember( devID, &evt->addr );
|
||||||
}
|
}
|
||||||
*devIDp = devID;
|
*devIDp = devID;
|
||||||
}
|
}
|
||||||
|
@ -917,8 +918,6 @@ CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp,
|
||||||
evt->u.con.clientVersion, nPlayersH, seed,
|
evt->u.con.clientVersion, nPlayersH, seed,
|
||||||
&evt->addr, devID, reconn );
|
&evt->addr, devID, reconn );
|
||||||
|
|
||||||
DevMgr::Get()->Remember( devID, &evt->addr );
|
|
||||||
|
|
||||||
HostID hostid = evt->u.con.srcID;
|
HostID hostid = evt->u.con.srcID;
|
||||||
if ( NULL != hidp ) {
|
if ( NULL != hidp ) {
|
||||||
*hidp = hostid;
|
*hidp = hostid;
|
||||||
|
|
Loading…
Reference in a new issue