Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FanDjango committed Oct 22, 2024
1 parent 3b3f4b1 commit 688e4a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions FluentFTP/Monitors/FtpFolderMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,10 @@ private async void PollFolder(object state) {
// Log the exception or handle it as needed
Console.WriteLine($"Error polling FTP folder: {ex.Message}");
}

// restart the timer
StartTimer(PollFolder);
finally {
// restart the timer
StartTimer(PollFolder);
}
}

/// <summary>
Expand Down

0 comments on commit 688e4a2

Please sign in to comment.