Commit 3babe447 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud

natpmp: avoid log flooding in case of an init error

Change-Id: I88ff2997ec436f0f10672fa14471de93395673fa
parent 12742b8c
......@@ -44,6 +44,8 @@ NatPmp::NatPmp()
}
if (err < 0) {
JAMI_ERR("NAT-PMP: Can't initialize libnatpmp -> %s", getNatPmpErrorStr(err).c_str());
// Retry to init nat pmp in 10 seconds
std::this_thread::sleep_for(std::chrono::seconds(10));
} else {
char addrbuf[INET_ADDRSTRLEN];
inet_ntop(AF_INET, &natpmpHdl_.gateway, addrbuf, sizeof(addrbuf));
......
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