public void StopClient()
{
// Set the boolean to false to stop the asynchronous packet receiving
listening = false;
client.Close();
audioStream.Close();
//client.EndReceive(currentReceive, ref endPoint);
Console.WriteLine(" [UDPClient] Stopped listening on port " + port);
}