Refactor main source into separate files
[sigrok-cli.git] / 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;