From: Bert Vermeulen Date: Fri, 3 Aug 2012 08:12:54 +0000 (+0200) Subject: asix-sigma: remove session source when done X-Git-Tag: dsupstream~735 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=503c4afbb43da85723d1a40bf985b88f7a4bc3c7;p=libsigrok.git asix-sigma: remove session source when done --- diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 7c73a723..e6515dd2 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -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;