1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Tonlib: change liteservers on query timeout or connection close

This commit is contained in:
SpyCheese 2022-10-04 15:12:13 +03:00
parent 69cee95abb
commit 33a079962f
16 changed files with 117 additions and 37 deletions

View file

@ -374,6 +374,7 @@ void LastBlock::on_sync_error(td::Status status) {
promise.set_error(status.clone());
}
promises_.clear();
client_.force_change_liteserver();
}
void LastBlock::on_fatal_error(td::Status status) {
VLOG(last_block) << "sync: fatal error " << status;