mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
Merge pull request #3745 from Isira-Seneviratne/Skip_stream_check
Properly skip the new stream check.
This commit is contained in:
commit
71147daa1a
@ -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