1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Remove hack to avoid resetting firstMessage on parallel connection

This commit is contained in:
Uwe L. Korn 2013-06-03 14:55:04 +02:00
parent 83d49a6324
commit bec4224048

View File

@ -824,7 +824,7 @@ Servent::initiateConnection( const SipInfo& sipInfo, Connection* conn )
return;
}
if ( !sipInfo.key().isEmpty() && conn->firstMessage().isNull() )
if ( conn->firstMessage().isNull() )
{
QVariantMap m;
m["conntype"] = "accept-offer";
@ -898,7 +898,7 @@ Servent::reverseOfferRequest( ControlConnection* orig_conn, const QString& their
m["key"] = theirkey;
m["controlid"] = Database::instance()->impl()->dbid();
new_conn->setFirstMessage( m );
createParallelConnection( orig_conn, new_conn, QString() );
createParallelConnection( orig_conn, new_conn, theirkey );
}
// return the appropriate connection for a given offer key, or NULL if invalid