From 0960ed4963d69e3cead7a9c292b77a018693df3c Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 10 Aug 2019 04:32:34 -0700 Subject: [PATCH] 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 :-) --- .../app/src/main/java/org/eehouse/android/xw4/RelayService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayService.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayService.java index c8a82368f..9572ed935 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayService.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayService.java @@ -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];