From 305661ad7e4d134c5ba7db54215ef7877734c78e Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Mon, 23 Jan 2012 04:52:13 +0100 Subject: [PATCH] cli: if PDs fail, signal a proper session shutdown instead of abort. --- sigrok-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2