1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-26 12:53:41 +01:00

* Fixed duplicating connections in DNSResolver.

This commit is contained in:
Christian Muehlhaeuser 2011-02-13 00:17:17 +01:00
parent b32560a6f9
commit 9f6b367bfb

View File

@ -327,12 +327,13 @@ DNSResolver::DNSResolver()
m_dnsShared->addInterface(QHostAddress::Any); m_dnsShared->addInterface(QHostAddress::Any);
m_dnsShared->addInterface(QHostAddress::AnyIPv6); m_dnsShared->addInterface(QHostAddress::AnyIPv6);
m_dnsSharedRequest = new JDnsSharedRequest(m_dnsShared); m_dnsSharedRequest = new JDnsSharedRequest(m_dnsShared);
connect(m_dnsSharedRequest, SIGNAL(resultsReady()), SLOT(resultsReady()));
} }
void void
DNSResolver::resolve( QString &host, QString type ) DNSResolver::resolve( QString &host, QString type )
{ {
connect(m_dnsSharedRequest, SIGNAL(resultsReady()), SLOT(resultsReady()));
if( type == "SRV" ) if( type == "SRV" )
{ {
// For the moment, assume we are looking for XMPP... // For the moment, assume we are looking for XMPP...