From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Fri, 30 Dec 2022 18:49:10 +0000 (+0000) Subject: Move unfixable_error_reported flag from conn to config. X-Git-Tag: 4.2.1d0~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4c9c0bcd8bdc49b2fde8d20274e8e4475007ff7;p=thirdparty%2Fshairport-sync.git Move unfixable_error_reported flag from conn to config. --- diff --git a/rtsp.c b/rtsp.c index c68feb43..2104caca 100644 --- a/rtsp.c +++ b/rtsp.c @@ -665,8 +665,8 @@ void *player_watchdog_thread_code(void *arg) { conn->stop = 1; pthread_cancel(conn->thread); } else if (conn->watchdog_barks == 3) { - if ((config.cmd_unfixable) && (conn->unfixable_error_reported == 0)) { - conn->unfixable_error_reported = 1; + if ((config.cmd_unfixable) && (config.unfixable_error_reported == 0)) { + config.unfixable_error_reported = 1; command_execute(config.cmd_unfixable, "unable_to_cancel_play_session", 1); } else { die("an unrecoverable error, \"unable_to_cancel_play_session\", has been detected.",