From: Bert Vermeulen Date: Mon, 23 Jan 2012 03:52:13 +0000 (+0100) Subject: cli: if PDs fail, signal a proper session shutdown instead of abort. X-Git-Tag: sigrok-cli-0.3.0~60 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=305661ad7e4d134c5ba7db54215ef7877734c78e;p=sigrok-cli.git cli: if PDs fail, signal a proper session shutdown instead of abort. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index 07800d2..22b8117 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -446,7 +446,7 @@ static void datafeed_in(struct sr_device *device, struct sr_datafeed_packet *pac if (opt_pds) { if (srd_session_feed(received_samples, (uint8_t*)filter_out, filter_out_len) != SRD_OK) - abort(); + sr_session_halt(); } else { output_len = 0; if (o->format->data && packet->type == o->format->df_type)