mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 19:37:27 -03:00
mapport: drop outdated comments
This commit is contained in:
parent
b7b2435290
commit
38fdf7c1fb
1 changed files with 0 additions and 4 deletions
|
@ -129,7 +129,6 @@ static void ThreadMapPort()
|
||||||
do {
|
do {
|
||||||
ok = false;
|
ok = false;
|
||||||
|
|
||||||
// High priority protocol.
|
|
||||||
if (g_mapport_enabled_protos & MapPortProtoFlag::PCP) {
|
if (g_mapport_enabled_protos & MapPortProtoFlag::PCP) {
|
||||||
g_mapport_current_proto = MapPortProtoFlag::PCP;
|
g_mapport_current_proto = MapPortProtoFlag::PCP;
|
||||||
ok = ProcessPCP();
|
ok = ProcessPCP();
|
||||||
|
@ -170,14 +169,11 @@ static void DispatchMapPort()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_mapport_enabled_protos & g_mapport_current_proto) {
|
if (g_mapport_enabled_protos & g_mapport_current_proto) {
|
||||||
// Enabling another protocol does not cause switching from the currently used one.
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(g_mapport_thread.joinable());
|
assert(g_mapport_thread.joinable());
|
||||||
assert(!g_mapport_interrupt);
|
assert(!g_mapport_interrupt);
|
||||||
// Interrupt a protocol-specific loop in the ThreadPCP()
|
|
||||||
// to force trying the next protocol in the ThreadMapPort() loop.
|
|
||||||
g_mapport_interrupt();
|
g_mapport_interrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue