Fix subliminal core: wrong providers being restarted

This commit is contained in:
Vitiko 2022-03-19 02:02:05 -04:00
parent aaf4b7c673
commit 8c4e83c18d
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,10 @@ class SZProviderPool(ProviderPool):
# Restart providers with new configs
for key, val in provider_configs.items():
# Don't restart providers that are not enabled
if key not in self.providers:
continue
# key: provider's name; val: config dict
old_val = self.provider_configs.get(key)