diff options
| -rw-r--r-- | libs/binder/IServiceManager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/binder/IServiceManager.cpp b/libs/binder/IServiceManager.cpp index 2062b3b509..3aeff2eda3 100644 --- a/libs/binder/IServiceManager.cpp +++ b/libs/binder/IServiceManager.cpp @@ -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; } |