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

Commit b923e787 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't block long time gettng system service"

parents 83a665c3 86fc4f34
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
 */

#include <mutex>
#include <unistd.h>

#include <binder/ActivityManager.h>
#include <binder/Binder.h>
#include <binder/IServiceManager.h>
@@ -44,7 +46,7 @@ sp<IActivityManager> ActivityManager::getService()
                service = NULL;
                break;
            }
            sleep(1);
            usleep(25000);
        } else {
            service = interface_cast<IActivityManager>(binder);
            mService = service;