Skip to content

Commit

Permalink
mapport: drop outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
darosior committed Oct 25, 2024
1 parent b7b2435 commit 38fdf7c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/mapport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ static void ThreadMapPort()
do {
ok = false;

// High priority protocol.
if (g_mapport_enabled_protos & MapPortProtoFlag::PCP) {
g_mapport_current_proto = MapPortProtoFlag::PCP;
ok = ProcessPCP();
Expand Down Expand Up @@ -170,14 +169,11 @@ static void DispatchMapPort()
}

if (g_mapport_enabled_protos & g_mapport_current_proto) {
// Enabling another protocol does not cause switching from the currently used one.
return;
}

assert(g_mapport_thread.joinable());
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();
}

Expand Down

0 comments on commit 38fdf7c

Please sign in to comment.