]> sigrok.org Git - sigrok-cli.git/commitdiff
cli: if PDs fail, signal a proper session shutdown instead of abort.
authorBert Vermeulen <redacted>
Mon, 23 Jan 2012 03:52:13 +0000 (04:52 +0100)
committerBert Vermeulen <redacted>
Mon, 23 Jan 2012 03:53:32 +0000 (04:53 +0100)
sigrok-cli.c

index 07800d2ddd37db760971cb52ffbafa8468564738..22b81178063929ce8043a3c8f1e33cdfa31966b2 100644 (file)
@@ -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)