]> git.mxchange.org Git - hub.git/commitdiff
Also set a DHT instance (same) in this class
authorRoland Häder <roland@mxchange.org>
Wed, 6 Feb 2013 18:54:49 +0000 (18:54 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 6 Feb 2013 18:54:49 +0000 (18:54 +0000)
application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php

index cf22768d422e85ef2cf40a51f6ca7d4d13e4f63a..b5a556d2e156284fa167c0dd09fb303be6a4e02f 100644 (file)
@@ -41,6 +41,12 @@ class NodeDhtBootstrapTask extends BaseTask implements Taskable, Visitable {
                // Get new instance
                $taskInstance = new NodeDhtBootstrapTask();
 
+               // Get a DHT instance
+               $dhtInstance = DhtObjectFactory::createDhtObjectInstance();
+
+               // Set the DHT instance here
+               $taskInstance->setDhtInstance($dhtInstance);
+
                // Return the prepared instance
                return $taskInstance;
        }