The leader watcher should not start processing requests if it failed
to initialize.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
3723d44fa83f38572bf7587e1111005c8ba6ed69)
assert(m_on_finish != nullptr);
std::swap(m_on_finish, on_finish);
- // listener should be ready for instance add/remove events now
- m_instances->unblock_listener();
+ if (m_ret_val == 0) {
+ // listener should be ready for instance add/remove events now
+ m_instances->unblock_listener();
+ }
}
on_finish->complete(0);
}