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

Commit c92420b2 authored by Dmitry Shmidt's avatar Dmitry Shmidt Committed by Android Git Automerger
Browse files

am d9a65a65: Merge "Improving the time to wait for assigning IP address"

* commit 'd9a65a65':
  Improving the time to wait for assigning IP address
parents 71a86444 d9a65a65
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -72,14 +72,16 @@ static int wait_for_property(const char *name, const char *desired_value, int ma
        maxnaps = 1;
    }

    while (maxnaps-- > 0) {
        usleep(NAP_TIME * 1000);
    while (maxnaps-- >= 0) {
        if (property_get(name, value, NULL)) {
            if (desired_value == NULL || 
                    strcmp(value, desired_value) == 0) {
                return 0;
            }
        }
        if (maxnaps >= 0) {
            usleep(NAP_TIME * 1000);
        }
    }
    return -1; /* failure */
}