mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
Properly skip the new stream check.
This commit is contained in:
parent
33ccb1aa0a
commit
2c24b26eb9
@ -36,7 +36,7 @@ class NotificationWorker(appContext: Context, parameters: WorkerParameters) :
|
||||
private val notificationManager = appContext.getSystemService<NotificationManager>()!!
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user