diff --git a/src/home/homed-home.c b/src/home/homed-home.c index d16509d574..a79a719383 100644 --- a/src/home/homed-home.c +++ b/src/home/homed-home.c @@ -2681,8 +2681,6 @@ static int home_dispatch_acquire(Home *h, Operation *o) { assert(o); assert(o->type == OPERATION_ACQUIRE); - assert(!h->current_operation); - switch (home_get_state(h)) { case HOME_UNFIXATED: @@ -2718,6 +2716,8 @@ static int home_dispatch_acquire(Home *h, Operation *o) { return 0; } + assert(!h->current_operation); + r = home_ratelimit(h, &error); if (r >= 0) r = call(h, o->secret, for_state, &error);