void Follower::on_server_disconnected() { log_->debug("follower %", __FUNCTION__); // starting monitor if (!is_destructing_) { quit_.store(false); monitor_ = std::async(std::launch::async, [this]() { monitor(); }); } // calling user callback if (osd_) osd_(); }
void ShmdataFollower::on_server_disconnected() { if (osd_) osd_(); }