Example #1
0
 private void Stop()
 {
     Console.WriteLine("Stopping");
     status = Status.STOP;
     try
     {
         radio.Dispose();
         audio.Dispose();
     }
     catch
     {
         // ignored
     }
 }
 private void Stop()
 {
     Console.WriteLine("Stopping");
     status = Status.STOP;
     Task.Factory.StartNew(() =>
     {
         try
         {
             radio.Dispose();
             audio.Dispose();
         }
         catch
         {
             // ignored
         }
     });
 }