oops: still need to register device connecting via tcp so gcm sends

can work.
This commit is contained in:
Eric House 2013-08-07 21:36:06 -07:00
parent 84b77d4456
commit cd9eea665b

View file

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