Use sr_session_stop() instead of the deprecated sr_session_halt().
Signed-off-by: Lars-Peter Clausen <redacted>
if (opt_continuous)
g_warning("Device stopped after %" PRIu64 " samples.",
received_samples);
- sr_session_halt();
+ sr_session_stop();
if (outfile && outfile != stdout)
fclose(outfile);
g_free(o);
if (opt_pds) {
if (srd_session_send(received_samples, (uint8_t*)filter_out,
filter_out_len) != SRD_OK)
- sr_session_halt();
+ sr_session_stop();
} else {
output_len = 0;
if (o->format->data && packet->type == o->format->df_type)