mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-19 19:14:51 +00:00
Cleanup.
This commit is contained in:
parent
8b20b4909f
commit
33780f1046
1 changed files with 2 additions and 1 deletions
|
@ -259,10 +259,11 @@ class StateSubscriptions {
|
|||
val subUrls = getSubscriptions().parallelStream().map {
|
||||
if(usePolycentric) {
|
||||
val result = StatePolycentric.instance.getChannelUrlsWithUpdateResult(it.channel.url, it.channel.id, polycentricBudget <= 0);
|
||||
if(result.first)
|
||||
if(result.first) {
|
||||
synchronized(lock) {
|
||||
polycentricBudget--;
|
||||
}
|
||||
}
|
||||
Pair(it, result.second);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue