title: NSNetserviceBrowser delegate method is not firing
body: <p>I am doing one application. In that I am publishing the service using <code>NsNetservice</code> and browse using <code>NSNetserviceBrowser</code>. But sometimes service publish the services successfully, but browser not able to find that service using <code>didFindservice</code> delegate method. Only <code>netServiceBrowserWillSearch</code> is firing and <code>didNotsearch</code> delegate method is also not firing. And if I restart the devices then it's working correctly.</p>
  
  <p>Please help me how to resolve this problem.Code for browser and service please check below</p>
  
  <p><strong>Browser:</strong></p>
  
  <pre><code>  self.browser = [[NSNetServiceBrowser alloc] init];
  self.browser.includesPeerToPeer = YES;
  [self.browser setDelegate:self];
  [self.browser searchForServicesOfType:[NSString stringWithFormat:@"%@%@._tcp.",serviceName,Name] inDomain:@""];
  </code></pre>
  
  <p><strong>Service:</strong></p>
  
  <pre><code>  self.netService = [[NSNetService alloc] initWithDomain:@"" type:[NSString stringWithFormat:@"%@%@._tcp.",serviceName,Name] name:Name port:randomPortNumber];
  self.netService.includesPeerToPeer = YES;
  [self.netService setDelegate:self];
   [self.netService scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
  [self.netService publishWithOptions:NSNetServiceListenForConnections];
  </code></pre>