From ec25e7bc4bb8c203f89f133136a62a08410d6ceb Mon Sep 17 00:00:00 2001 From: Mark Wachsler Date: Tue, 24 Jun 2014 11:04:54 -0400 Subject: [PATCH] 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 --- fastboot/fastboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index 9c04c21ea..266d0b5de 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();