mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Use nodeID instead of Connection ID.
This commit is contained in:
@@ -325,7 +325,7 @@ Servent::createParallelConnection( Connection* orig_conn, Connection* new_conn,
|
||||
m.insert( "key", tmpkey );
|
||||
m.insert( "offer", key );
|
||||
m.insert( "port", externalPort() );
|
||||
m.insert( "controlid", orig_conn->id() );
|
||||
m.insert( "controlid", APP->nodeID() );
|
||||
|
||||
QJson::Serializer ser;
|
||||
orig_conn->sendMsg( Msg::factory( ser.serialize(m), Msg::JSON ) );
|
||||
@@ -469,7 +469,7 @@ Servent::reverseOfferRequest( ControlConnection* orig_conn, const QString& key,
|
||||
m["conntype"] = "push-offer";
|
||||
m["key"] = theirkey;
|
||||
m["port"] = externalPort();
|
||||
m["controlid"] = orig_conn->id();
|
||||
m["controlid"] = APP->nodeID();
|
||||
new_conn->setFirstMessage( m );
|
||||
createParallelConnection( orig_conn, new_conn, QString() );
|
||||
}
|
||||
|
@@ -70,8 +70,8 @@ TransferView::fileTransferFinished( FileTransferConnection* ftc )
|
||||
void
|
||||
TransferView::onTransferUpdate()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
FileTransferConnection* ftc = (FileTransferConnection*)sender();
|
||||
qDebug() << Q_FUNC_INFO << ftc->track().isNull() << ftc->source().isNull();
|
||||
if ( ftc->track().isNull() || ftc->source().isNull() )
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user