- struct sr_datafeed_packet packet = { .type = SR_DF_END };
-
- if (sdi->status != SR_ST_ACTIVE)
- return SR_ERR_DEV_CLOSED;
-
- sr_session_send(cb_data, &packet);
- sr_session_source_remove(sdi->session, 0);
-
+ std_session_send_df_end(sdi);
+ sr_session_source_remove(sdi->session, -1);