From 738ad59f542dc686ce7b5858417e5e1168b04883 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Tue, 28 Jul 2026 10:40:33 +0800 Subject: [PATCH] Revert "Weather: replaces aggressive exit(1) with proper error handling (#2474)" This reverts commit c5a8950ad4d3a460d5789c66e402164ae8cea693. --- src/detection/weather/weather.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/weather/weather.c b/src/detection/weather/weather.c index 0f65af8cf..8a70a966a 100644 --- a/src/detection/weather/weather.c +++ b/src/detection/weather/weather.c @@ -7,8 +7,8 @@ static const char* status = FF_UNITIALIZED; void ffPrepareWeather(FFWeatherOptions* options) { if (status != FF_UNITIALIZED) { - status = "Weather module can only be used once due to internal limitations"; - return; + fputs("Error: Weather module can only be used once due to internal limitations\n", stderr); + exit(1); } state.timeout = options->timeout;