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

Add null check in manager.cpp (#1069)

This commit is contained in:
SpyCheese 2024-07-23 15:17:36 +03:00 committed by GitHub
parent 015e2e55d3
commit 58ca7b44ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();