From 7f8bb31e23f537bc58d757041db94f63f65fa688 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Fri, 28 Jun 2013 14:23:14 +0200
Subject: [PATCH] Set nodeId on lazy offers

---
 src/libtomahawk/network/Servent.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/libtomahawk/network/Servent.cpp b/src/libtomahawk/network/Servent.cpp
index 724616375..975c56a44 100644
--- a/src/libtomahawk/network/Servent.cpp
+++ b/src/libtomahawk/network/Servent.cpp
@@ -1090,6 +1090,13 @@ Servent::claimOffer( ControlConnection* cc, const QString &nodeid, const QString
         conn->addPeerInfo( d_func()->lazyoffers.value( key ).first );
         conn->setId( d_func()->lazyoffers.value( key ).second );
 
+        if ( !nodeid.isEmpty() )
+        {
+            // Used by the connection for the ACL check
+            // If there isn't a nodeid it's not the first connection and will already have been stopped
+            conn->setNodeId( nodeid );
+        }
+
         // Register as non-lazy offer
         d_func()->lazyoffers.remove( key );
         registerOffer( key, conn );