title: Listener already in use (Service Discovery)
body: <p>I can't resolve one service while another is being resolved? If that's what the error means... What is the way to wait until it is resolved?</p>
  
  <pre><code>@Override
  public void onServiceFound(NsdServiceInfo service) {
      Log.d(TAG, "Service found. " + service);
      if (service.getServiceType().equals(SERVICE_TYPE)) {
          if (service.getServiceName().contains(mServiceName)) {
              mNsdManager.resolveService(service, mResolveListener);
          }
      }
  }
  </code></pre>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: listener already in use at
    android.net.nsd.NsdManager.resolveService(NsdManager.java:613)
                at com.example.miguel.broadcast.LocalService$2.onServiceFound(LocalService.java:145)</p>
  </blockquote>