diff --git a/app/src/main/java/com/github/libretube/workers/NotificationWorker.kt b/app/src/main/java/com/github/libretube/workers/NotificationWorker.kt index 6da93819f..e5766bb98 100644 --- a/app/src/main/java/com/github/libretube/workers/NotificationWorker.kt +++ b/app/src/main/java/com/github/libretube/workers/NotificationWorker.kt @@ -36,7 +36,7 @@ class NotificationWorker(appContext: Context, parameters: WorkerParameters) : private val notificationManager = appContext.getSystemService()!! override suspend fun doWork(): Result { - if (!checkTime()) Result.success() + if (!checkTime()) return Result.success() // check whether there are new streams and notify if there are some val result = checkForNewStreams() // return success if the API request succeeded