the receiver task needs to be recreated for addMembership
This commit is contained in:
parent
79d6f346b6
commit
11a1263fda
|
@ -107,6 +107,8 @@ public final class UdpSocketClient implements UdpReceiverTask.OnDataReceivedList
|
||||||
mReceiverTask.cancel(true);
|
mReceiverTask.cancel(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mReceiverTask = new UdpReceiverTask();
|
||||||
|
|
||||||
// tear down the DatagramSocket, and rebuild as a MulticastSocket
|
// tear down the DatagramSocket, and rebuild as a MulticastSocket
|
||||||
final int port = mSocket.getLocalPort();
|
final int port = mSocket.getLocalPort();
|
||||||
mSocket.close();
|
mSocket.close();
|
||||||
|
|
Loading…
Reference in New Issue