mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20: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>()!!
|
private val notificationManager = appContext.getSystemService<NotificationManager>()!!
|
||||||
|
|
||||||
override suspend fun doWork(): Result {
|
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
|
// check whether there are new streams and notify if there are some
|
||||||
val result = checkForNewStreams()
|
val result = checkForNewStreams()
|
||||||
// return success if the API request succeeded
|
// return success if the API request succeeded
|
||||||
|
Loading…
x
Reference in New Issue
Block a user