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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user