Use async destruction for ForumTopicManager.

This commit is contained in:
levlam 2022-10-27 14:59:21 +03:00
parent 1b9a8cc6fe
commit 3b58079799

View File

@ -107,7 +107,9 @@ class CreateForumTopicQuery final : public Td::ResultHandler {
ForumTopicManager::ForumTopicManager(Td *td, ActorShared<> parent) : td_(td), parent_(std::move(parent)) { ForumTopicManager::ForumTopicManager(Td *td, ActorShared<> parent) : td_(td), parent_(std::move(parent)) {
} }
ForumTopicManager::~ForumTopicManager() = default; ForumTopicManager::~ForumTopicManager() {
Scheduler::instance()->destroy_on_scheduler(G()->get_gc_scheduler_id(), dialog_topics_);
}
void ForumTopicManager::tear_down() { void ForumTopicManager::tear_down() {
parent_.reset(); parent_.reset();