diff --git a/app/src/main/java/com/futo/platformplayer/states/StateSubscriptions.kt b/app/src/main/java/com/futo/platformplayer/states/StateSubscriptions.kt index 1f28b707487f441626f9c309f03e6b74a64cc4b1..a91f2104c57477d281183b4541f2b19bbf8b7a96 100644 --- a/app/src/main/java/com/futo/platformplayer/states/StateSubscriptions.kt +++ b/app/src/main/java/com/futo/platformplayer/states/StateSubscriptions.kt @@ -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