Skip to content
Snippets Groups Projects
Commit 3babe447 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

natpmp: avoid log flooding in case of an init error

Change-Id: I88ff2997ec436f0f10672fa14471de93395673fa
parent 12742b8c
Branches
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment