mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +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;
|
||||
if ( !!devIDp && addr->isUDP() ) {
|
||||
if ( !!devIDp ) {
|
||||
DevIDType devIDType = evt->u.con.devID->m_devIDType;
|
||||
// does client support devID
|
||||
if ( ID_TYPE_NONE != devIDType ) {
|
||||
devID = DBMgr::Get()->RegisterDevice( evt->u.con.devID );
|
||||
DevMgr::Get()->Remember( devID, addr );
|
||||
if ( addr->isUDP() ) {
|
||||
DevMgr::Get()->Remember( devID, addr );
|
||||
}
|
||||
}
|
||||
*devIDp = devID;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue