Merge "Fix nanosleep in BootAnimation" am: 45e281ef2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891586 Change-Id: I19f359a175aa9596f400481029c029c2dd908aa5
This commit is contained in:
commit
73357c61d0
@ -1577,7 +1577,7 @@ bool BootAnimation::playAnimation(const Animation& animation) {
|
|||||||
int err;
|
int err;
|
||||||
do {
|
do {
|
||||||
err = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &spec, nullptr);
|
err = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &spec, nullptr);
|
||||||
} while (err<0 && errno == EINTR);
|
} while (err == EINTR);
|
||||||
}
|
}
|
||||||
|
|
||||||
checkExit();
|
checkExit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user