diff --git a/src/Nocr.TelegramListener.AppServices/UpdateListeners/UpdateListenerBackgroundService.cs b/src/Nocr.TelegramListener.AppServices/UpdateListeners/UpdateListenerBackgroundService.cs index 8a22c16..dc01f2d 100644 --- a/src/Nocr.TelegramListener.AppServices/UpdateListeners/UpdateListenerBackgroundService.cs +++ b/src/Nocr.TelegramListener.AppServices/UpdateListeners/UpdateListenerBackgroundService.cs @@ -37,7 +37,7 @@ public sealed class UpdateListenerBackgroundService : BackgroundService Client? client = null; while (!stoppingToken.IsCancellationRequested) { - if (DateTimeOffset.UtcNow - TimeSpan.FromHours(2) < _activityStartTime) + if (DateTimeOffset.UtcNow - TimeSpan.FromHours(2) > _activityStartTime) { _logger.LogInformation("Timeout exceed."); _activityStartTime = DateTimeOffset.UtcNow;