mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-29 05:22:30 +02:00
mapport: merge DispatchMapPort into StartMapPort
This commit is contained in:
parent
9bd936fa34
commit
1b223cb19b
@ -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…
Reference in New Issue
Block a user