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

Commit 88ab073c authored by Andy Hung's avatar Andy Hung Committed by android-build-merger
Browse files

IServiceManager: Improve getService responsiveness in absence of service am: 3b36bcf7

am: 35a75be4

Change-Id: Ie94ace9f0cb28fed682e8e01088e700df810a3a3
parents c90ae396 35a75be4
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -135,10 +135,12 @@ public:
    {
        unsigned n;
        for (n = 0; n < 5; n++){
            if (n > 0) {
                ALOGI("Waiting for service %s...", String8(name).string());
                sleep(1);
            }
            sp<IBinder> svc = checkService(name);
            if (svc != NULL) return svc;
            ALOGI("Waiting for service %s...\n", String8(name).string());
            sleep(1);
        }
        return NULL;
    }