mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-04 00:35:26 +00:00
Increase polling rate to once per 2 minutes to ensure rules are updated quickly after a router reboot
This commit is contained in:
parent
afe60bfe30
commit
7bc806edb4
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#define SERVICE_NAME "MISS"
|
#define SERVICE_NAME "MISS"
|
||||||
#define UPNP_SERVICE_NAME "Moonlight"
|
#define UPNP_SERVICE_NAME "Moonlight"
|
||||||
|
#define POLLING_DELAY_SEC 120
|
||||||
#define PORT_MAPPING_DURATION_SEC 3600
|
#define PORT_MAPPING_DURATION_SEC 3600
|
||||||
#define UPNP_DISCOVERY_DELAY_MS 5000
|
#define UPNP_DISCOVERY_DELAY_MS 5000
|
||||||
|
|
||||||
@ -590,7 +591,7 @@ int Run()
|
|||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
ULONGLONG beforeSleepTime = GetTickCount64();
|
ULONGLONG beforeSleepTime = GetTickCount64();
|
||||||
DWORD ret = WaitForMultipleObjects(ARRAYSIZE(events), events, false, (PORT_MAPPING_DURATION_SEC * 1000) / 2);
|
DWORD ret = WaitForMultipleObjects(ARRAYSIZE(events), events, false, POLLING_DELAY_SEC * 1000);
|
||||||
if (ret == WAIT_OBJECT_0) {
|
if (ret == WAIT_OBJECT_0) {
|
||||||
ResetLogFile();
|
ResetLogFile();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user