don't assert in race condition loss

This commit is contained in:
Eric House 2020-04-29 10:54:19 -07:00
parent 0e0615f5d2
commit 7efd084d35

View file

@ -243,7 +243,7 @@ public class NetStateCache {
mNotifyLater = new Runnable() {
@Override
public void run() {
Assert.assertTrue( mLastStateSent != s_netAvail );
if ( mLastStateSent != s_netAvail ) {
mLastStateSent = s_netAvail;
Log.i( TAG, "notifyStateChanged(%b)", s_netAvail );
@ -261,6 +261,7 @@ public class NetStateCache {
GameUtils.resendAllIf( context, typ );
}
}
}
};
mHandler.postDelayed( mNotifyLater, WAIT_STABLE_MILLIS );
}