summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Keith Mok <keithmok@google.com> 2021-11-19 22:37:57 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-11-19 22:37:57 +0000
commit45e281ef2b51233cdafbb68da05f36abb8193a43 (patch)
tree9af317bb19e13ce31e83a5f9855b31cc7564905c /cmds/bootanimation/BootAnimation.cpp
parentc1e9c53fc3fc257484cb360fd9085724c3087d4f (diff)
parent0f2e66866c18ff581fc0e9225bdac67509c68658 (diff)
Merge "Fix nanosleep in BootAnimation"
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 3109c5c1e075..6b8a775ef838 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -1348,7 +1348,7 @@ bool BootAnimation::playAnimation(const Animation& animation) {
int err;
do {
err = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &spec, nullptr);
- } while (err<0 && errno == EINTR);
+ } while (err == EINTR);
}
checkExit();