]> git.webhop.me Git - shellexec.git/commitdiff
- shellexec: try to fix instance-handling
authorsvenhoefer <svenhoefer@svenhoefer.com>
Mon, 19 Sep 2016 19:08:03 +0000 (21:08 +0200)
committersvenhoefer <svenhoefer@svenhoefer.com>
Mon, 19 Sep 2016 19:08:03 +0000 (21:08 +0200)
io.c

diff --git a/io.c b/io.c
index 562814b6e77888f2298f213894b6126d2f4de787..d049106d5f30845043f5ba4f7af76f5ca6dd3d51 100644 (file)
--- 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;