mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix typos, UBs and warnings (#625)
This commit is contained in:
parent
5a47495d87
commit
0578cb4a42
19 changed files with 193 additions and 139 deletions
|
@ -67,11 +67,10 @@ void TokenManager::download_token_cleared(size_t download_size, td::uint32 prior
|
|||
}
|
||||
|
||||
void TokenManager::alarm() {
|
||||
for (auto it = pending_.begin(); it != pending_.end(); it++) {
|
||||
for (auto it = pending_.begin(); it != pending_.end();) {
|
||||
if (it->second.timeout.is_in_past()) {
|
||||
it->second.promise.set_error(td::Status::Error(ErrorCode::timeout, "timeout in wait download token"));
|
||||
auto it2 = it++;
|
||||
pending_.erase(it2);
|
||||
it = pending_.erase(it);
|
||||
} else {
|
||||
it++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue