Commit 1191c7db authored by Adrien Béraud's avatar Adrien Béraud

p2p: add dht put result log

Change-Id: Ic6eb026538fe4dc80d52aa6748c06884c9b3786b
parent 1cc0d1bd
......@@ -404,7 +404,11 @@ private:
// Send connection request through DHT
JAMI_DBG() << parent_.account << "[CNX] request connection to " << peer_;
parent_.account.dht()->putEncrypted(
dht::InfoHash::get(PeerConnectionMsg::key_prefix + peer_.toString()), peer_, request);
dht::InfoHash::get(PeerConnectionMsg::key_prefix + peer_.toString()), peer_, request,
[](bool ok) {
if (ok) JAMI_DBG("[CNX] successfully put CNX request on DHT");
else JAMI_ERR("[CNX] error putting CNX request on DHT");
});
// Wait for call to onResponse() operated by DHT
std::mutex mtx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment