Skip to content

Commit

Permalink
Add null check in manager.cpp (#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyCheese authored Jul 23, 2024
1 parent 015e2e5 commit 58ca7b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions validator/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1910,8 +1910,10 @@ void ValidatorManagerImpl::new_masterchain_block() {
last_known_key_block_handle_ = last_key_block_handle_;
callback_->new_key_block(last_key_block_handle_);
}
td::actor::send_closure(serializer_, &AsyncStateSerializer::update_last_known_key_block_ts,
last_key_block_handle_->unix_time());
if (!serializer_.empty()) {
td::actor::send_closure(serializer_, &AsyncStateSerializer::update_last_known_key_block_ts,
last_key_block_handle_->unix_time());
}
}

update_shards();
Expand Down

0 comments on commit 58ca7b4

Please sign in to comment.