Destroy business_connections_ asynchronously.

This commit is contained in:
levlam 2024-03-31 18:40:09 +03:00
parent 5bc00fa834
commit 0b4f0b1657

View File

@ -440,7 +440,9 @@ BusinessConnectionManager::BusinessConnectionManager(Td *td, ActorShared<> paren
upload_thumbnail_callback_ = std::make_shared<UploadThumbnailCallback>();
}
BusinessConnectionManager::~BusinessConnectionManager() = default;
BusinessConnectionManager::~BusinessConnectionManager() {
Scheduler::instance()->destroy_on_scheduler(G()->get_gc_scheduler_id(), business_connections_);
}
void BusinessConnectionManager::tear_down() {
parent_.reset();