Previously checking for CONNECTED was equivalent to
checking the objecter had been initialized, but since
the separation between init() and start() that is
no longer the case. Avoid the need to be smart by
just readint Objecter::initialized to learn whether
to call Objecter::shutdown
Fixes: #9067
Signed-off-by: John Spray <john.spray@redhat.com>
finisher.stop();
}
bool need_objecter = false;
- if (objecter && state == CONNECTED) {
+ if (objecter && objecter->initialized.read()) {
need_objecter = true;
}
state = DISCONNECTED;