]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: remove session source when done
authorBert Vermeulen <redacted>
Fri, 3 Aug 2012 08:12:54 +0000 (10:12 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 09:29:01 +0000 (11:29 +0200)
hardware/asix-sigma/asix-sigma.c

index 7c73a72313ba24f9ebd337bcc310098ace339feb..e6515dd255eb5cdf126f89ccd24a6254fca1f75d 100644 (file)
@@ -1417,6 +1417,8 @@ static int hw_dev_acquisition_stop(const struct sr_dev_inst *sdi,
        /* Avoid compiler warnings. */
        (void)cb_data;
 
+       sr_source_remove(0);
+
        if (!(devc = sdi->priv)) {
                sr_err("sigma: %s: sdi->priv was NULL", __func__);
                return SR_ERR_BUG;