1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

Do not crash if we could not send a Xmpp message

This commit is contained in:
Uwe L. Korn
2014-05-07 12:54:34 +01:00
parent ef25604c08
commit 53471812e4

View File

@@ -457,6 +457,11 @@ XmppSipPlugin::sendSipInfos( const Tomahawk::peerinfo_ptr& receiver, const QList
Jreen::IQ iq( Jreen::IQ::Set, receiver->id() );
iq.addExtension( sipMessage );
Jreen::IQReply *reply = m_client->send( iq );
// Check that we were able to create a reply
Q_ASSERT( reply );
if ( !reply ) return;
reply->setData( SipMessageSent );
connect( reply, SIGNAL( received( Jreen::IQ ) ), SLOT( onNewIq( Jreen::IQ ) ) );
}