Skip to content

FluentFTP.Monitors AsyncFtpMonitor issue #1771

@h4z0rQ

Description

@h4z0rQ

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions