From 1651db288dc8656fd53bb1546db3171b1e028160 Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Sun, 21 Jun 2020 12:48:26 +0100 Subject: [PATCH] Do not flush the message queue when receiving core-generated notification messages --- retroarch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/retroarch.c b/retroarch.c index c8ed7369e8..238e8f470f 100644 --- a/retroarch.c +++ b/retroarch.c @@ -17185,9 +17185,11 @@ static void runloop_core_msg_queue_push( fps = (av_info && (av_info->timing.fps > 0)) ? av_info->timing.fps : 60.0; duration_frames = (unsigned)((fps * (float)msg->duration / 1000.0f) + 0.5f); + /* Note: Do not flush the message queue here - a core + * may need to send multiple notifications simultaneously */ runloop_msg_queue_push(msg->msg, msg->priority, duration_frames, - true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, + false, NULL, MESSAGE_QUEUE_ICON_DEFAULT, category); }