1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 19:22:37 +00:00

Fix setting inited_ in FullNodeCustomOverlay (#954)

Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
EmelyanenkoK 2024-04-03 12:11:07 +03:00 committed by GitHub
parent 8390d887d3
commit cc4244f5a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,7 +189,7 @@ void FullNodeCustomOverlay::receive_broadcast(PublicKeyHash src, td::BufferSlice
} }
void FullNodeCustomOverlay::send_external_message(td::BufferSlice data) { void FullNodeCustomOverlay::send_external_message(td::BufferSlice data) {
if (config_.ext_messages_broadcast_disabled_) { if (!inited_ || config_.ext_messages_broadcast_disabled_) {
return; return;
} }
LOG(FULL_NODE_DEBUG) << "Sending external message to private overlay \"" << name_ << "\""; LOG(FULL_NODE_DEBUG) << "Sending external message to private overlay \"" << name_ << "\"";
@ -267,6 +267,7 @@ void FullNodeCustomOverlay::init() {
td::actor::send_closure(rldp_, &rldp::Rldp::add_id, local_id_); td::actor::send_closure(rldp_, &rldp::Rldp::add_id, local_id_);
td::actor::send_closure(rldp2_, &rldp2::Rldp::add_id, local_id_); td::actor::send_closure(rldp2_, &rldp2::Rldp::add_id, local_id_);
inited_ = true;
} }
void FullNodeCustomOverlay::tear_down() { void FullNodeCustomOverlay::tear_down() {