Skip to content
Snippets Groups Projects
Commit a83d7028 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

data transfer: cleanup

Change-Id: I96e540736235def975f1d77657381a73415a9717
parent 4f2677bb
No related branches found
No related tags found
No related merge requests found
...@@ -343,7 +343,6 @@ TransferManager::transferFile(const std::shared_ptr<dhtnet::ChannelSocket>& chan ...@@ -343,7 +343,6 @@ TransferManager::transferFile(const std::shared_ptr<dhtnet::ChannelSocket>& chan
bool bool
TransferManager::cancel(const std::string& fileId) TransferManager::cancel(const std::string& fileId)
{ {
std::shared_ptr<dhtnet::ChannelSocket> channel;
std::lock_guard<std::mutex> lk {pimpl_->mapMutex_}; std::lock_guard<std::mutex> lk {pimpl_->mapMutex_};
// Remove from waiting, this avoid auto-download // Remove from waiting, this avoid auto-download
auto itW = pimpl_->waitingIds_.find(fileId); auto itW = pimpl_->waitingIds_.find(fileId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment