mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-11 14:54:33 -05:00
Fix Graphql-WS errors and Improve Downloader Subscription (#634)
* Fix errors in graphql-ws * Send download messages more often
This commit is contained in:
@@ -132,12 +132,11 @@ object DownloadManager {
|
||||
}
|
||||
|
||||
private fun notifyAllClients(immediate: Boolean = false) {
|
||||
scope.launch {
|
||||
notifyFlow.emit(Unit)
|
||||
}
|
||||
if (immediate) {
|
||||
sendStatusToAllClients()
|
||||
} else {
|
||||
scope.launch {
|
||||
notifyFlow.emit(Unit)
|
||||
}
|
||||
}
|
||||
/*if (downloadChapter != null) { TODO GRAPHQL
|
||||
downloadSubscriptionSource.publish(downloadChapter)
|
||||
|
||||
Reference in New Issue
Block a user