codex5.2: исправил ошибки в работе с ресурсами на стороне клиента

This commit is contained in:
2025-12-31 16:49:01 +06:00
parent 347844251e
commit d47a5cc090
3 changed files with 71 additions and 9 deletions

View File

@@ -1100,6 +1100,10 @@ coro<> ServerSession::rP_Resource(Net::AsyncSocket &sock) {
);
AsyncContext.AssetsLoading.erase(AsyncContext.AssetsLoading.find(hash));
auto iter = std::lower_bound(AsyncContext.AlreadyLoading.begin(), AsyncContext.AlreadyLoading.end(), hash);
if(iter != AsyncContext.AlreadyLoading.end() && *iter == hash)
AsyncContext.AlreadyLoading.erase(iter);
}
} catch(const std::exception& exc) {
std::string err = exc.what();
@@ -1246,4 +1250,4 @@ coro<> ServerSession::rP_Content(Net::AsyncSocket &sock) {
}
}
}
}