Use a shorter delay for the first watchdog check

This commit is contained in:
Robbert van der Helm
2021-05-01 18:47:45 +02:00
parent 4ff538c7e1
commit 5c2da36ecd
2 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -325,7 +325,8 @@ class MainContext {
* it's impossible to tell that the remote isn't alive anymore, and where
* `recv()` will just hang indefinitely. We use this watchdog to avoid this.
*/
void async_handle_watchdog();
void async_handle_watchdog_timer(
std::chrono::steady_clock::duration interval);
/**
* The timer used to periodically handle X11 events and Win32 messages.