mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
try to address one-time assert
and remove it from shipping build
This commit is contained in:
parent
a7da0e33bb
commit
9374260c59
1 changed files with 7 additions and 3 deletions
|
@ -618,7 +618,12 @@ public class RelayService extends XWJIService
|
|||
iter.hasNext(); ) {
|
||||
PacketData packet = iter.next();
|
||||
long sentMS = packet.getSentMS();
|
||||
Assert.assertTrue( prevSentMS <= sentMS );
|
||||
if ( prevSentMS > sentMS ) {
|
||||
Log.e( TAG, "error: prevSentMS: %d > sentMS: %d", prevSentMS, sentMS );
|
||||
Assert.assertFalse( BuildConfig.DEBUG );
|
||||
continue;
|
||||
}
|
||||
|
||||
prevSentMS = sentMS;
|
||||
if ( sentMS > minSentMS ) {
|
||||
break;
|
||||
|
@ -715,8 +720,7 @@ public class RelayService extends XWJIService
|
|||
udpSocket.send( udpPacket );
|
||||
|
||||
sentLen += udpPacket.getLength();
|
||||
// Why's this commented out?
|
||||
// packet.setSentMS( nowMS );
|
||||
packet.setSentMS(); // this was commented out. Why?
|
||||
breakNow = false;
|
||||
} catch ( IOException ex ) {
|
||||
Log.e( TAG, "fail sending to %s", udpSocket );
|
||||
|
|
Loading…
Reference in a new issue