Don't add empty promises to query list.
This commit is contained in:
parent
a9679cbaab
commit
50fdce9ae1
@ -1962,6 +1962,9 @@ void StoryManager::reload_story(StoryFullId story_full_id, Promise<Unit> &&promi
|
||||
}
|
||||
|
||||
auto &queries = reload_story_queries_[story_full_id];
|
||||
if (!queries.empty() && !promise) {
|
||||
return;
|
||||
}
|
||||
queries.push_back(std::move(promise));
|
||||
if (queries.size() != 1) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user