drivers: Match dummy FD passed to source add/remove

This commit is contained in:
Daniel Elstner 2015-09-07 14:33:30 +02:00
parent 5a7d8dac90
commit dd7a4a71ca
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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.");

View File

@ -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;
}