From 377e02cd49a44eeeca3804fca3c445fbe954b556 Mon Sep 17 00:00:00 2001 From: euzu Date: Sat, 12 Apr 2025 18:35:16 +0200 Subject: [PATCH] fix status for active provider connections --- CHANGELOG.md | 2 +- src/api/model/active_provider_manager.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b629cb261..e251a1ade 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,7 +64,7 @@ url: ['http://localhost:3001/xmltv.php?epg_id=1', 'http://localhost:3001/xmltv.p ``` - added `estrip` to input for auto epg matching, if not given `["3840p", "uhd", "fhd", "hd", "sd", "4k", "plus", "raw"]` is default When no matching epg_id is found, the display name is used to match a channel name. The given strings are stripped to get a better match. - +- fixed chno assignment issue # 2.2.5 (2025-03-27) - fixed web ui playlist regexp search diff --git a/src/api/model/active_provider_manager.rs b/src/api/model/active_provider_manager.rs index c2ae7215a..6273a503e 100644 --- a/src/api/model/active_provider_manager.rs +++ b/src/api/model/active_provider_manager.rs @@ -82,6 +82,7 @@ impl ProviderConfig { pub fn try_allocate(&self, grace: bool) -> ProviderAllocation { let connections = self.current_connections.load(Ordering::SeqCst); if self.max_connections == 0 { + self.current_connections.fetch_add(1, Ordering::SeqCst); return ProviderAllocation::Available(self); } if (!grace && connections < self.max_connections) || (grace && connections <= self.max_connections) {