Example #1
0
 public void StopListening()
 {
     if (_listener != null)
     {
         _listener.Stop();
         _listener.Dispose();
         _listener = null;
     }
 }
Example #2
0
 public void EndGame()
 {
     _listener?.Stop();
     _listener?.Dispose();
 }