the receiver task needs to be recreated for addMembership

This commit is contained in:
Andy Prock 2015-11-19 10:08:00 -08:00
parent 79d6f346b6
commit 11a1263fda
1 changed files with 2 additions and 0 deletions

View File

@ -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();