]> sigrok.org Git - libsigrok.git/blobdiff - hardware/lascar-el-usb/protocol.c
Add struct sr_session parameter to all session source backends.
[libsigrok.git] / hardware / lascar-el-usb / protocol.c
index 050b42bb1eb8494655f9072beac43272511769e0..49c5cd0a3687e3416c8585edd72c1634cca7e204 100644 (file)
@@ -499,7 +499,7 @@ SR_PRIV int lascar_el_usb_handle_events(int fd, int revents, void *cb_data)
        sdi = cb_data;
 
        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);