codex5.2: исправил ошибки в работе с ресурсами на стороне клиента
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user