remove bad assert

Can't connect to relay when laptop (emu case) or device has no network,
so stop asserting all the time on airplanes :-)
This commit is contained in:
Eric House 2019-08-10 04:32:34 -07:00
parent 2e4d3a1276
commit 0960ed4963

View file

@ -1327,8 +1327,8 @@ public class RelayService extends XWJIService
try {
DatagramSocket udpSocket = s_UDPSocket;
if ( null == udpSocket ) {
// will be null if e.g. device or emulator doesn't have network
udpSocket = getService().connectSocketOnce(); // block until this is done
Assert.assertTrue( null != udpSocket || !BuildConfig.DEBUG );
}
byte[] buf = new byte[1024];