]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[animation] Make ply_animation_start idempotent
authorRay Strode <rstrode@redhat.com>
Wed, 23 Sep 2009 21:38:54 +0000 (17:38 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 28 Sep 2009 21:55:34 +0000 (17:55 -0400)
src/libplybootsplash/ply-animation.c

index 170b44ca853782d6fa6f01c401b4c3ebcf6cfdb5..1fee4b9c9c9bf2219dc9cc2e04d2ee9c650558b9 100644 (file)
@@ -301,6 +301,9 @@ ply_animation_start (ply_animation_t    *animation,
 {
   assert (animation != NULL);
 
+  if (!animation->is_stopped)
+    return true;
+
   animation->loop = ply_event_loop_get_default ();
   animation->display = display;
   animation->stop_trigger = stop_trigger;