mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 12:22:50 -05:00
mapport: merge DispatchMapPort into StartMapPort
This commit is contained in:
parent
9bd936fa34
commit
1b223cb19b
1 changed files with 2 additions and 7 deletions
|
@ -151,8 +151,9 @@ void StartThreadMapPort()
|
|||
}
|
||||
}
|
||||
|
||||
static void DispatchMapPort()
|
||||
void StartMapPort(bool enable)
|
||||
{
|
||||
g_mapport_enabled = enable;
|
||||
if (!g_mapport_current && g_mapport_enabled) {
|
||||
StartThreadMapPort();
|
||||
} else if (g_mapport_current && !g_mapport_enabled) {
|
||||
|
@ -161,12 +162,6 @@ static void DispatchMapPort()
|
|||
}
|
||||
}
|
||||
|
||||
void StartMapPort(bool enable)
|
||||
{
|
||||
g_mapport_enabled = enable;
|
||||
DispatchMapPort();
|
||||
}
|
||||
|
||||
void InterruptMapPort()
|
||||
{
|
||||
g_mapport_enabled = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue