From 3e1a2431255fc645d687c7ca6a6a1726605a8299 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Tue, 21 May 2024 00:11:42 +0900 Subject: [PATCH] =?utf8?q?Revert=20"=E3=82=BF=E3=82=A4=E3=83=A0=E3=83=A9?= =?utf8?q?=E3=82=A4=E3=83=B3=E6=9B=B4=E6=96=B0=E3=81=AE=E6=AC=A1=E5=9B=9E?= =?utf8?q?=E5=AE=9F=E8=A1=8C=E3=81=8C1=E6=99=82=E9=96=93=E4=BB=A5=E4=B8=8A?= =?utf8?q?=E5=85=88=E3=81=AB=E3=81=AA=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=AF?= =?utf8?q?=E7=95=B0=E5=B8=B8=E5=80=A4=E3=81=A8=E3=81=97=E3=81=A6=E3=82=BF?= =?utf8?q?=E3=82=A4=E3=83=9E=E3=83=BC=E3=82=92=E3=83=AA=E3=82=BB=E3=83=83?= =?utf8?q?=E3=83=88=E3=81=99=E3=82=8B"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This reverts commit e6099ad9c8446be808805cee19d08344118c09b0. --- OpenTween/TimelineScheduler.cs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/OpenTween/TimelineScheduler.cs b/OpenTween/TimelineScheduler.cs index 206e012e..115b6913 100644 --- a/OpenTween/TimelineScheduler.cs +++ b/OpenTween/TimelineScheduler.cs @@ -105,26 +105,9 @@ namespace OpenTween return; // TimerCallback 内で更新されるのでここは単に無視してよい if (this.Enabled) - { - var delay = this.NextTimerDelay(); - - // タイマーの待機時間が 1 時間を超える値になった場合は異常値として強制的にリセットする - // (タイムライン更新が停止する不具合が報告される件への暫定的な対処) - if (delay >= TimeSpan.FromHours(1)) - { - MyCommon.ExceptionOut(new Exception("タイムライン更新の待機時間が異常値のためリセットします: " + delay)); - foreach (var key in this.LastUpdatedAt.Keys) - this.LastUpdatedAt[key] = DateTimeUtc.MinValue; - - delay = TimeSpan.FromSeconds(10); - } - - this.timer.Change(delay, Timeout.InfiniteTimeSpan); - } + this.timer.Change(this.NextTimerDelay(), Timeout.InfiniteTimeSpan); else - { this.timer.Change(Timeout.InfiniteTimeSpan, Timeout.InfiniteTimeSpan); - } } public void SystemResumed() -- 2.11.0