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:
parent
83d49a6324
commit
bec4224048
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user