diff options
author | Nathan Hjelm <hjelmn@google.com> | 2019-08-09 08:59:27 -0700 |
---|---|---|
committer | Nathan Hjelm <hjelmn@google.com> | 2019-08-09 09:05:02 -0700 |
commit | 96a1f3737584b6b3384d0d5e821e8b7fcae8f2cb (patch) | |
tree | 81a5fa9316fa7d9b94d09cf39ea0dd481b5707d5 /.gitignore | |
parent | 767eafbf7f93a22ba8d33e77afb11469da597405 (diff) | |
download | libusb-96a1f3737584b6b3384d0d5e821e8b7fcae8f2cb.tar.gz |
darwin: fix bugs in the reenumeration of devices
This commit fixes two bugs in device re-enumeration (enumeration after
init):
- The internal device object (cached device) was being re-used but the
user-visible one was not. This would cause the user to get stale data
when using the device afer reset. Now the (per libusb spec) the
user-visible device object is re-used and updated.
- If multiple libusb contexts were active then only the first context
was handled correctly. Fixed by moving the cached device search
out of process_new_device().
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions