mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
oops: still need to register device connecting via tcp so gcm sends
can work.
This commit is contained in:
parent
84b77d4456
commit
cd9eea665b
1 changed files with 4 additions and 2 deletions
|
@ -917,12 +917,14 @@ CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp,
|
||||||
}
|
}
|
||||||
|
|
||||||
const AddrInfo* addr = &evt->addr;
|
const AddrInfo* addr = &evt->addr;
|
||||||
if ( !!devIDp && addr->isUDP() ) {
|
if ( !!devIDp ) {
|
||||||
DevIDType devIDType = evt->u.con.devID->m_devIDType;
|
DevIDType devIDType = evt->u.con.devID->m_devIDType;
|
||||||
// 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, addr );
|
if ( addr->isUDP() ) {
|
||||||
|
DevMgr::Get()->Remember( devID, addr );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
*devIDp = devID;
|
*devIDp = devID;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue