From: Bert Vermeulen Date: Thu, 2 Aug 2012 23:05:59 +0000 (+0200) Subject: cli: don't call sr_session_stop() when SR_DF_END is seen X-Git-Tag: sigrok-cli-0.4.0~88 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=491e882048295442b38bb4c24d830302a23c0b70;p=sigrok-cli.git cli: don't call sr_session_stop() when SR_DF_END is seen This was effectively an infinite loop in some cases. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index 403f01d..f548282 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -599,7 +599,6 @@ static void datafeed_in(const struct sr_dev_inst *sdi, if (opt_continuous) g_warning("Device stopped after %" PRIu64 " samples.", received_samples); - sr_session_stop(); if (outfile && outfile != stdout) fclose(outfile); g_free(o);