Use async destruction for ForumTopicManager.
This commit is contained in:
parent
1b9a8cc6fe
commit
3b58079799
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user