mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
use comms_formatRelayID to get the opponent's relayID
This commit is contained in:
parent
1eb82d5285
commit
0c5e230942
1 changed files with 3 additions and 2 deletions
|
@ -2516,7 +2516,8 @@ public class BoardDelegate extends DelegateBase
|
|||
String relayID = null;
|
||||
if ( m_gi.serverRole != DeviceRole.SERVER_STANDALONE ) {
|
||||
CommsAddrRec[] addrs = XwJNI.comms_getAddrs( m_jniGamePtr );
|
||||
for ( CommsAddrRec addr : addrs ) {
|
||||
for ( int ii = 0; ii < addrs.length; ++ii ) {
|
||||
CommsAddrRec addr = addrs[ii];
|
||||
if ( addr.contains( CommsConnType.COMMS_CONN_BT ) ) {
|
||||
Assert.assertNull( btAddr );
|
||||
btAddr = addr.bt_btAddr;
|
||||
|
@ -2527,7 +2528,7 @@ public class BoardDelegate extends DelegateBase
|
|||
}
|
||||
if ( addr.contains( CommsConnType.COMMS_CONN_RELAY ) ) {
|
||||
Assert.assertNull( relayID );
|
||||
relayID = m_summary.relayID;
|
||||
relayID = XwJNI.comms_formatRelayID( m_jniGamePtr, ii );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue