mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-01 23:35:27 +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 UPNP_SERVICE_NAME "Moonlight"
|
||||
#define POLLING_DELAY_SEC 120
|
||||
#define PORT_MAPPING_DURATION_SEC 3600
|
||||
#define UPNP_DISCOVERY_DELAY_MS 5000
|
||||
|
||||
@ -590,7 +591,7 @@ int Run()
|
||||
fflush(stdout);
|
||||
|
||||
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) {
|
||||
ResetLogFile();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user