From 08064fe872e3dd46ce0850b82fc535944f9bd0c2 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 8 Oct 2021 11:56:19 +0200 Subject: [PATCH] fixed endless loop if stopping tape while auto-playing --- src/tape.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tape.c b/src/tape.c index 92d24473..68eeaccf 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1864,7 +1864,8 @@ static int AutoPlayTapesExt(boolean initialize) // clear timestamp for batch tape upload (required after interactive upload) global.autoplay_time = 0; - if (program.headless) + // exit if running headless or if visually auto-playing tapes + if (program.headless || global.autoplay_mode != AUTOPLAY_MODE_UPLOAD) CloseAllAndExit(0); // when running interactively, restore last selected level set and number -- 2.34.1