mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dhtnode: fix cancelListen
This commit is contained in:
1 parent
be6a5671ed
commit
2c0f4a897c
1 file changed
+4
-5
+4
-5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user