]> sigrok.org Git - sigrok-cli.git/commitdiff
Remove anykey input source after it fired
authorBert Vermeulen <redacted>
Mon, 29 Apr 2013 22:07:16 +0000 (00:07 +0200)
committerBert Vermeulen <redacted>
Mon, 29 Apr 2013 22:07:16 +0000 (00:07 +0200)
anykey.c

index 70e2248a0df20e72a4b0047f17e1aaf7ed2f93e4..24970c2c299a26733dc754a34a3c586925367be5 100644 (file)
--- a/anykey.c
+++ b/anykey.c
@@ -42,6 +42,7 @@ static int received_anykey(int fd, int revents, void *cb_data)
        (void)revents;
        (void)cb_data;
 
+       sr_session_source_remove(STDIN_FILENO);
        sr_session_stop();
 
        return TRUE;