From 1bbb3e4529dc37c503f27ea1b3e8e6267107d0c6 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 19 Sep 2016 21:08:03 +0200 Subject: [PATCH] - shellexec: try to fix instance-handling --- io.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/io.c b/io.c index 562814b..d049106 100644 --- a/io.c +++ b/io.c @@ -165,6 +165,11 @@ int GetRCCode(int timeout_in_ms) { int rv = -1; + if (!RCKeyPressed() || (get_instance()>instance)) + { + return rv; + } + if (timeout_in_ms) { struct pollfd pfd; struct timeval tv; -- 2.39.5