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:
parent
bb44c9a2e9
commit
ccebc6b9f9
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user