drivers: Match dummy FD passed to source add/remove
This commit is contained in:
parent
5a7d8dac90
commit
dd7a4a71ca
|
@ -1533,7 +1533,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
|
|||
devc = sdi->priv;
|
||||
devc->state.state = SIGMA_IDLE;
|
||||
|
||||
sr_session_source_remove(sdi->session, 0);
|
||||
sr_session_source_remove(sdi->session, -1);
|
||||
|
||||
return SR_OK;
|
||||
}
|
||||
|
|
|
@ -283,7 +283,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
|
|||
packet.type = SR_DF_END;
|
||||
sr_session_send(sdi, &packet);
|
||||
|
||||
sr_session_source_remove(sdi->session, 0);
|
||||
sr_session_source_remove(sdi->session, -1);
|
||||
|
||||
return SR_OK;
|
||||
}
|
||||
|
|
|
@ -713,7 +713,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
|
|||
write_shortcommand(devc, CMD_RESET);
|
||||
write_shortcommand(devc, CMD_RESET);
|
||||
|
||||
sr_session_source_remove(sdi->session, 0);
|
||||
sr_session_source_remove(sdi->session, -1);
|
||||
|
||||
/* Send end packet to the session bus. */
|
||||
sr_dbg("Sending SR_DF_END.");
|
||||
|
|
|
@ -220,7 +220,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
|
|||
packet.type = SR_DF_END;
|
||||
sr_session_send(sdi, &packet);
|
||||
|
||||
sr_session_source_remove(sdi->session, 0);
|
||||
sr_session_source_remove(sdi->session, -1);
|
||||
|
||||
return SR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue