]> sigrok.org Git - libsigrok.git/blobdiff - hardware/uni-t-ut32x/protocol.c
Add struct sr_session parameter to all session source backends.
[libsigrok.git] / hardware / uni-t-ut32x / protocol.c
index 863f9fa82aab7bae3a7e370d1c94eb5aee27d6f0..65cb756bd87774dc4b275d5673710507d9654d94 100644 (file)
@@ -217,7 +217,7 @@ SR_PRIV int uni_t_ut32x_handle_events(int fd, int revents, void *cb_data)
                        NULL);
 
        if (sdi->status == SR_ST_STOPPING) {
-               usb_source_remove(drvc->sr_ctx);
+               usb_source_remove(sdi->session, drvc->sr_ctx);
                packet.type = SR_DF_END;
                sr_session_send(cb_data, &packet);