Skip to content
This repository
Browse code

[network] - for judging if zeroconf is started evaluate the m_started…

… flag instead of "IsInstantiated" (the latter always is true but doesn't mean the services are announced) - fixes #14302
  • Loading branch information...
commit afbe204d5f7313a0671cce80da623c33e80ac668 1 parent 4995c01
Memphiz authored May 03, 2013
2  xbmc/network/NetworkServices.cpp
@@ -898,7 +898,7 @@ bool CNetworkServices::StartZeroconf()
898 898
 bool CNetworkServices::IsZeroconfRunning()
899 899
 {
900 900
 #ifdef HAS_ZEROCONF
901  
-  return CZeroconf::GetInstance()->IsInstantiated();
  901
+  return CZeroconf::GetInstance()->IsStarted();
902 902
 #endif // HAS_ZEROCONF
903 903
   return false;
904 904
 }
2  xbmc/network/Zeroconf.h
@@ -79,6 +79,8 @@ class CZeroconf
79 79
   static bool   IsInstantiated() { return  smp_instance != 0; }
80 80
   // win32: process results from the bonjour daemon
81 81
   virtual void  ProcessResults() {}
  82
+  // returns if the service is started and services are announced
  83
+  bool IsStarted() { return m_started; }
82 84
 
83 85
 protected:
84 86
   //methods to implement for concrete implementations

0 notes on commit afbe204

Please sign in to comment.
Something went wrong with that request. Please try again.