mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-14 08:14:34 -05:00
Implemented Dowloads front-end
This commit is contained in:
@@ -83,6 +83,7 @@ object DownloadManager {
|
||||
)
|
||||
)
|
||||
)
|
||||
start()
|
||||
}
|
||||
notifyAllClients()
|
||||
}
|
||||
@@ -93,10 +94,14 @@ object DownloadManager {
|
||||
}
|
||||
|
||||
fun start() {
|
||||
if (downloader != null && !downloader?.isAlive!!) // doesn't exist or is dead
|
||||
downloader = null
|
||||
|
||||
if (downloader == null) {
|
||||
downloader = Downloader(downloadQueue) { notifyAllClients() }
|
||||
downloader!!.start()
|
||||
}
|
||||
|
||||
notifyAllClients()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user