mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Remove hack to avoid resetting firstMessage on parallel connection
This commit is contained in:
@@ -824,7 +824,7 @@ Servent::initiateConnection( const SipInfo& sipInfo, Connection* conn )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !sipInfo.key().isEmpty() && conn->firstMessage().isNull() )
|
if ( conn->firstMessage().isNull() )
|
||||||
{
|
{
|
||||||
QVariantMap m;
|
QVariantMap m;
|
||||||
m["conntype"] = "accept-offer";
|
m["conntype"] = "accept-offer";
|
||||||
@@ -898,7 +898,7 @@ Servent::reverseOfferRequest( ControlConnection* orig_conn, const QString& their
|
|||||||
m["key"] = theirkey;
|
m["key"] = theirkey;
|
||||||
m["controlid"] = Database::instance()->impl()->dbid();
|
m["controlid"] = Database::instance()->impl()->dbid();
|
||||||
new_conn->setFirstMessage( m );
|
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
|
// return the appropriate connection for a given offer key, or NULL if invalid
|
||||||
|
Reference in New Issue
Block a user