diff options
Diffstat (limited to 'src/BtSetup.cc')
| -rw-r--r-- | src/BtSetup.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BtSetup.cc b/src/BtSetup.cc index 1edf22ea..595c2987 100644 --- a/src/BtSetup.cc +++ b/src/BtSetup.cc @@ -139,8 +139,8 @@ void BtSetup::setup(std::vector<std::unique_ptr<Command>>& commands, if(DHTRegistry::isInitialized()) { auto command = make_unique<DHTGetPeersCommand> (e->newCUID(), requestGroup, e); - command->setTaskQueue(DHTRegistry::getData().taskQueue); - command->setTaskFactory(DHTRegistry::getData().taskFactory); + command->setTaskQueue(DHTRegistry::getData().taskQueue.get()); + command->setTaskFactory(DHTRegistry::getData().taskFactory.get()); command->setBtRuntime(btRuntime); command->setPeerStorage(peerStorage); commands.push_back(std::move(command)); @@ -148,8 +148,8 @@ void BtSetup::setup(std::vector<std::unique_ptr<Command>>& commands, if(DHTRegistry::isInitialized6()) { auto command = make_unique<DHTGetPeersCommand> (e->newCUID(), requestGroup, e); - command->setTaskQueue(DHTRegistry::getData6().taskQueue); - command->setTaskFactory(DHTRegistry::getData6().taskFactory); + command->setTaskQueue(DHTRegistry::getData6().taskQueue.get()); + command->setTaskFactory(DHTRegistry::getData6().taskFactory.get()); command->setBtRuntime(btRuntime); command->setPeerStorage(peerStorage); commands.push_back(std::move(command)); |
