From: Roland Häder Date: Wed, 6 Feb 2013 18:54:49 +0000 (+0000) Subject: Also set a DHT instance (same) in this class X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=43e400622392262f54259ea7937a0080884c9abc;p=hub.git Also set a DHT instance (same) in this class --- diff --git a/application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php b/application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php index cf22768d4..b5a556d2e 100644 --- a/application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php +++ b/application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php @@ -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; }