Skip to content

Commit

Permalink
Fix setting inited_ in FullNodeCustomOverlay (#954)
Browse files Browse the repository at this point in the history
Co-authored-by: SpyCheese <[email protected]>
  • Loading branch information
EmelyanenkoK and SpyCheese authored Apr 3, 2024
1 parent 8390d88 commit cc4244f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validator/full-node-private-overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void FullNodeCustomOverlay::receive_broadcast(PublicKeyHash src, td::BufferSlice
}

void FullNodeCustomOverlay::send_external_message(td::BufferSlice data) {
if (config_.ext_messages_broadcast_disabled_) {
if (!inited_ || config_.ext_messages_broadcast_disabled_) {
return;
}
LOG(FULL_NODE_DEBUG) << "Sending external message to private overlay \"" << name_ << "\"";
Expand Down Expand Up @@ -267,6 +267,7 @@ void FullNodeCustomOverlay::init() {

td::actor::send_closure(rldp_, &rldp::Rldp::add_id, local_id_);
td::actor::send_closure(rldp2_, &rldp2::Rldp::add_id, local_id_);
inited_ = true;
}

void FullNodeCustomOverlay::tear_down() {
Expand Down

0 comments on commit cc4244f

Please sign in to comment.