commit | be65e040d48250b939359a3e4845b5800b6eb462 | [log] [tgz] |
---|---|---|
author | Roy Luo <royluo@google.com> | Wed Jun 21 19:33:29 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Jun 21 19:33:29 2023 +0000 |
tree | 6a7b1e108abc734df5ddfc1610bf1c23c93f7678 | |
parent | 684a66c8ece0c9c3d26441c3a4cd43fb88309c30 [diff] | |
parent | d1d5f5ab6988f441780d95ddcb566a2d9030f3d9 [diff] |
Merge "fastboot: remove retries on invalid IO iterator in OSX"
diff --git a/fastboot/usb_osx.cpp b/fastboot/usb_osx.cpp index 5b9e5c8..8b852f5 100644 --- a/fastboot/usb_osx.cpp +++ b/fastboot/usb_osx.cpp
@@ -436,12 +436,7 @@ for (;;) { if (! IOIteratorIsValid(iterator)) { - /* - * Apple documentation advises resetting the iterator if - * it should become invalid during iteration. - */ - IOIteratorReset(iterator); - continue; + break; } io_service_t device = IOIteratorNext(iterator);