Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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 Memphiz authored
Showing with 3 additions and 1 deletion.
  1. +1 −1  xbmc/network/NetworkServices.cpp
  2. +2 −0  xbmc/network/Zeroconf.h
View
2  xbmc/network/NetworkServices.cpp
@@ -898,7 +898,7 @@ bool CNetworkServices::StartZeroconf()
bool CNetworkServices::IsZeroconfRunning()
{
#ifdef HAS_ZEROCONF
- return CZeroconf::GetInstance()->IsInstantiated();
+ return CZeroconf::GetInstance()->IsStarted();
#endif // HAS_ZEROCONF
return false;
}
View
2  xbmc/network/Zeroconf.h
@@ -79,6 +79,8 @@ class CZeroconf
static bool IsInstantiated() { return smp_instance != 0; }
// win32: process results from the bonjour daemon
virtual void ProcessResults() {}
+ // returns if the service is started and services are announced
+ bool IsStarted() { return m_started; }
protected:
//methods to implement for concrete implementations
Please sign in to comment.
Something went wrong with that request. Please try again.