1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Move proxy factory setup in xmpp client

This commit is contained in:
Jeff Mitchell
2012-06-18 16:59:20 -04:00
parent bb44c9a2e9
commit ccebc6b9f9

View File

@@ -111,7 +111,6 @@ XmppSipPlugin::XmppSipPlugin( Account* account )
// general client setup
m_client = new Jreen::Client( jid, m_currentPassword );
m_client->setProxyFactory( TomahawkUtils::proxyFactory( true ) );
setupClientHelper();
m_client->registerPayload( new TomahawkXmppMessageFactory );
@@ -624,6 +623,7 @@ XmppSipPlugin::configurationChanged()
void
XmppSipPlugin::setupClientHelper()
{
m_client->setProxyFactory( TomahawkUtils::proxyFactory( true ) );
Jreen::JID jid = Jreen::JID( m_currentUsername );
m_client->setJID( jid );
m_client->setPassword( m_currentPassword );