mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04: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) {
|
if (!g_mapport_current && g_mapport_enabled) {
|
||||||
StartThreadMapPort();
|
StartThreadMapPort();
|
||||||
} else if (g_mapport_current && !g_mapport_enabled) {
|
} 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()
|
void InterruptMapPort()
|
||||||
{
|
{
|
||||||
g_mapport_enabled = false;
|
g_mapport_enabled = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue