mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
oops: don't default to clearing relayid
This commit is contained in:
parent
9650000fce
commit
5d49b9b5d6
1 changed files with 4 additions and 4 deletions
|
@ -946,7 +946,7 @@ CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp,
|
|||
DevIDType devIDType = evt->u.con.devID->m_devIDType;
|
||||
// does client support devID
|
||||
if ( ID_TYPE_RELAY == devIDType ) {
|
||||
// do nothing; it's registered already
|
||||
devID = evt->u.con.devID->asRelayID();
|
||||
} else if ( ID_TYPE_NONE != devIDType ) {
|
||||
if ( reconn // should have a relay id; can we look it up?
|
||||
&& DBMgr::Get()->FindRelayIDFor( ConnName(), evt->u.con.srcID,
|
||||
|
@ -956,9 +956,9 @@ CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp,
|
|||
} else {
|
||||
devID = DBMgr::Get()->RegisterDevice( evt->u.con.devID );
|
||||
}
|
||||
if ( addr->isUDP() ) {
|
||||
DevMgr::Get()->rememberDevice( devID, addr );
|
||||
}
|
||||
}
|
||||
if ( addr->isUDP() ) {
|
||||
DevMgr::Get()->rememberDevice( devID, addr );
|
||||
}
|
||||
*devIDp = devID;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue