1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 23:39:42 +01: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

@ -110,8 +110,7 @@ XmppSipPlugin::XmppSipPlugin( Account* account )
Jreen::JID jid = Jreen::JID( readUsername() );
// general client setup
m_client = new Jreen::Client( jid, m_currentPassword );
m_client->setProxyFactory( TomahawkUtils::proxyFactory( true ) );
m_client = new Jreen::Client( jid, m_currentPassword );
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 );