]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/demo/demo.c
libsigrok: demo: close pipes on dev_acquisition_stop()
[libsigrok.git] / src / hardware / demo / demo.c
index 4ad4ea3423f0890a1a39c04ae911fbfa2c388b60..920c1e4d6c93b33d79b0a1021d6e3d64373d8c98 100644 (file)
@@ -901,6 +901,8 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
        g_io_channel_shutdown(devc->channel, FALSE, NULL);
        g_io_channel_unref(devc->channel);
        devc->channel = NULL;
+       close(devc->pipe_fds[0]);
+       close(devc->pipe_fds[1]);
 
        /* Send last packet. */
        packet.type = SR_DF_END;