mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-05-02 23:54:29 +02:00
Cleanup.
This commit is contained in:
parent
8b20b4909f
commit
33780f1046
@ -259,10 +259,11 @@ class StateSubscriptions {
|
|||||||
val subUrls = getSubscriptions().parallelStream().map {
|
val subUrls = getSubscriptions().parallelStream().map {
|
||||||
if(usePolycentric) {
|
if(usePolycentric) {
|
||||||
val result = StatePolycentric.instance.getChannelUrlsWithUpdateResult(it.channel.url, it.channel.id, polycentricBudget <= 0);
|
val result = StatePolycentric.instance.getChannelUrlsWithUpdateResult(it.channel.url, it.channel.id, polycentricBudget <= 0);
|
||||||
if(result.first)
|
if(result.first) {
|
||||||
synchronized(lock) {
|
synchronized(lock) {
|
||||||
polycentricBudget--;
|
polycentricBudget--;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Pair(it, result.second);
|
Pair(it, result.second);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user