From 2dcf1854eb398f5e5d054767673130cf1c0813a0 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Mon, 12 Aug 2024 18:25:11 +0200 Subject: [PATCH] Fix saving config.ini after restart and startup make save_config fallback to single threaded save use --- CHANGES.md | 7 ++++++- sickgear/__init__.py | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 2484230d..af61f176 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 3.32.5 (2024-08-12 00:15:00 UTC) +### 3.32.6 (2024-08-12 17:10:00 UTC) + +* Fix saving config.ini after restart and startup + + +### 3.32.5 (2024-08-12 00:15:00 UTC) * Fix to create initial config.ini when one doesn't exist diff --git a/sickgear/__init__.py b/sickgear/__init__.py index c49528ef..f47b14de 100644 --- a/sickgear/__init__.py +++ b/sickgear/__init__.py @@ -1897,7 +1897,9 @@ def save_config(force=False): :param force: force save config even if unchanged """ global config_events - config_events.put(force) + + # use queue if it's available, otherwise, call save_config directly + hasattr(config_events, 'put') and config_events.put(force) or _save_config(force) def _save_config(force=False, **kwargs):