mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Move proxy factory setup in xmpp client
This commit is contained in:
@@ -110,8 +110,7 @@ XmppSipPlugin::XmppSipPlugin( Account* account )
|
|||||||
Jreen::JID jid = Jreen::JID( readUsername() );
|
Jreen::JID jid = Jreen::JID( readUsername() );
|
||||||
|
|
||||||
// general client setup
|
// general client setup
|
||||||
m_client = new Jreen::Client( jid, m_currentPassword );
|
m_client = new Jreen::Client( jid, m_currentPassword );
|
||||||
m_client->setProxyFactory( TomahawkUtils::proxyFactory( true ) );
|
|
||||||
setupClientHelper();
|
setupClientHelper();
|
||||||
|
|
||||||
m_client->registerPayload( new TomahawkXmppMessageFactory );
|
m_client->registerPayload( new TomahawkXmppMessageFactory );
|
||||||
@@ -624,6 +623,7 @@ XmppSipPlugin::configurationChanged()
|
|||||||
void
|
void
|
||||||
XmppSipPlugin::setupClientHelper()
|
XmppSipPlugin::setupClientHelper()
|
||||||
{
|
{
|
||||||
|
m_client->setProxyFactory( TomahawkUtils::proxyFactory( true ) );
|
||||||
Jreen::JID jid = Jreen::JID( m_currentUsername );
|
Jreen::JID jid = Jreen::JID( m_currentUsername );
|
||||||
m_client->setJID( jid );
|
m_client->setJID( jid );
|
||||||
m_client->setPassword( m_currentPassword );
|
m_client->setPassword( m_currentPassword );
|
||||||
|
Reference in New Issue
Block a user