WPF: Change network info debounce delay

This commit is contained in:
genteure 2022-07-07 20:48:32 +08:00
parent 80604b9abc
commit b1f740b69e

View File

@ -16,7 +16,7 @@ namespace BililiveRecorder.WPF
private static readonly ILogger logger = Log.ForContext(typeof(NetworkChangeDetector)); private static readonly ILogger logger = Log.ForContext(typeof(NetworkChangeDetector));
private static readonly object debounceLock = new(); private static readonly object debounceLock = new();
private static readonly TimeSpan debounceDelay = TimeSpan.FromSeconds(15); private static readonly TimeSpan debounceDelay = TimeSpan.FromSeconds(10);
private static CancellationTokenSource? debounceTokenSource = null; private static CancellationTokenSource? debounceTokenSource = null;
internal static void Enable() internal static void Enable()