-
-
Notifications
You must be signed in to change notification settings - Fork 677
Open
Labels
Description
Hello, is there an issue with StartTimer(PollInterval) in AsyncFtpMonitor? It seems like PollInterval is not working correctly — the server is being polled continuously without any delay.
I changed the StartTimer implementation from:
internal void StartTimer(TimerCallback callback)
{
_timer = new Timer(callback, null, TimeSpan.Zero, PollInterval);
}
To this:
internal void StartTimer(TimerCallback callback)
{
_timer = new Timer(callback, null, TimeSpan.FromSeconds(1), PollInterval);
}
After this change, the timer behaves as expected and polls the server every second. PollInterval value is completly ignored.