mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
don't allow reregister with a RELAY_ID (a client bug)
This commit is contained in:
parent
c1f94681bb
commit
4202f24091
1 changed files with 1 additions and 1 deletions
|
@ -1504,7 +1504,7 @@ registerDevice( const string& relayIDStr, const DevID* devID,
|
|||
if ( DBMgr::DEVID_NONE == relayID ) { // new device
|
||||
relayID = dbMgr->RegisterDevice( devID, clientVers, devDesc.c_str(),
|
||||
model.c_str(), osVers.c_str() );
|
||||
} else if ( ID_TYPE_NONE != devID->m_devIDType ) { // re-registering
|
||||
} else if ( ID_TYPE_RELAY < devID->m_devIDType ) { // re-registering
|
||||
dbMgr->ReregisterDevice( relayID, devID, devDesc.c_str(), clientVers,
|
||||
model.c_str(), osVers.c_str() );
|
||||
checkMsgs = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue