Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bbce946 authored by Daniel Colascione's avatar Daniel Colascione Committed by android-build-merger
Browse files

Merge "Properly finish daemon init when initial USB scan complete"

am: 2aabeed1

Change-Id: I0f687584e247d339952794713c0a5a7d7c62127a
parents 680129fd 2aabeed1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -609,6 +609,7 @@ static void device_poll_thread() {
    while (true) {
        // TODO: Use inotify.
        find_usb_device("/dev/bus/usb", register_device);
        adb_notify_device_scan_complete();
        kick_disconnected_devices();
        std::this_thread::sleep_for(1s);
    }
+1 −0
Original line number Diff line number Diff line
@@ -461,6 +461,7 @@ void usb_init() {
            std::this_thread::sleep_for(100ms);
        }

        adb_notify_device_scan_complete();
        initialized = true;
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -172,6 +172,7 @@ void device_poll_thread() {

    while (true) {
        find_devices();
        adb_notify_device_scan_complete();
        std::this_thread::sleep_for(1s);
    }
}