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

dhtnode: fix cancelListen

parent be6a5671
Branches
Tags
No related merge requests found
......@@ -279,6 +279,10 @@ void cmd_loop(std::shared_ptr<DhtRunner>& dht, dht_params& params
indexes.emplace(index, Pht {index, std::move(ks), dht});
} catch (std::invalid_argument& e) { std::cout << e.what() << std::endl; }
}
} else if (op == "cl") {
std::string rem;
iss >> rem;
dht->cancelListen(id, std::stoul(rem));
}
else {
// Dht syntax
......@@ -335,11 +339,6 @@ void cmd_loop(std::shared_ptr<DhtRunner>& dht, dht_params& params
auto t = token.get();
std::cout << "Listening, token: " << t << std::endl;
}
else if (op == "cl") {
std::string rem;
iss >> rem;
dht->cancelListen(id, std::stoul(rem));
}
else if (op == "p") {
std::string v;
iss >> v;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment