From 09e619b6ad6bf8cb2a97852695145f936d5b9b03 Mon Sep 17 00:00:00 2001 From: tateisu Date: Wed, 15 Jun 2022 11:12:33 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=89=E6=95=B4=E5=BD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jp/juggler/subwaytooter/notification/PollingUtils.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/jp/juggler/subwaytooter/notification/PollingUtils.kt b/app/src/main/java/jp/juggler/subwaytooter/notification/PollingUtils.kt index 904dd118..15dd08ab 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/notification/PollingUtils.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/notification/PollingUtils.kt @@ -322,10 +322,8 @@ suspend fun checkNoticifationAll( createServerTimeoutNotification(context, timeoutAccounts.sorted().joinToString(", ").ellipsizeDot3(256)) } - if (!hasError) { - if (!nextPollingRequired) { - PollingWorker2.cancelPolling(context) - } + if (!hasError && !nextPollingRequired) { + PollingWorker2.cancelPolling(context) } }