From 11a1263fda0d53a5c853eab71c782b03cac3611b Mon Sep 17 00:00:00 2001 From: Andy Prock Date: Thu, 19 Nov 2015 10:08:00 -0800 Subject: [PATCH] the receiver task needs to be recreated for addMembership --- android/src/main/java/com/tradle/react/UdpSocketClient.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/src/main/java/com/tradle/react/UdpSocketClient.java b/android/src/main/java/com/tradle/react/UdpSocketClient.java index 177d166..881dff5 100644 --- a/android/src/main/java/com/tradle/react/UdpSocketClient.java +++ b/android/src/main/java/com/tradle/react/UdpSocketClient.java @@ -107,6 +107,8 @@ public final class UdpSocketClient implements UdpReceiverTask.OnDataReceivedList mReceiverTask.cancel(true); } + mReceiverTask = new UdpReceiverTask(); + // tear down the DatagramSocket, and rebuild as a MulticastSocket final int port = mSocket.getLocalPort(); mSocket.close();