diff options
author | Mark Wachsler <wachsler@google.com> | 2014-06-24 11:04:54 -0400 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2014-06-24 22:34:34 +0000 |
commit | ec25e7bc4bb8c203f89f133136a62a08410d6ceb (patch) | |
tree | 013347865281fd67e1a9eec71c86519a7f3f0d70 /fastboot | |
parent | c4a09654cc2c91ad27f7d29d4584bec58d75e9f8 (diff) | |
download | system_core-ec25e7bc4bb8c203f89f133136a62a08410d6ceb.zip system_core-ec25e7bc4bb8c203f89f133136a62a08410d6ceb.tar.gz system_core-ec25e7bc4bb8c203f89f133136a62a08410d6ceb.tar.bz2 |
Wait for device to disappear after "fastboot reboot".
This is a follow-up to commit 157b00171a06f9ac2fd25ee3a86e801e896713d6.
After "fastboot reboot", "fastboot devices" was still showing the device as
connected even though it was starting to reboot; now "fastboot reboot" will
wait until the device has disconnected.
The wait timeout is 3 seconds.
Change-Id: I8066741f0be91e53f3e3f5bc968bc1b9de31db05
Diffstat (limited to 'fastboot')
-rw-r--r-- | fastboot/fastboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index 9c04c21..266d0b5 100644 --- a/fastboot/fastboot.c +++ b/fastboot/fastboot.c @@ -1216,6 +1216,7 @@ int main(int argc, char **argv) } if (wants_reboot) { fb_queue_reboot(); + fb_queue_wait_for_disconnect(); } else if (wants_reboot_bootloader) { fb_queue_command("reboot-bootloader", "rebooting into bootloader"); fb_queue_wait_for_disconnect(); |