1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Crash when closing providers too quickly

This commit is contained in:
WerWolv 2023-05-11 12:01:06 +02:00
parent 5c9d0e29c2
commit ea482ff0f5

View File

@ -62,7 +62,7 @@ namespace hex {
this->m_data.emplace(provider, T()); this->m_data.emplace(provider, T());
}); });
(void)EventManager::subscribe<EventProviderClosed>([this](prv::Provider *provider){ (void)EventManager::subscribe<EventProviderDeleted>([this](prv::Provider *provider){
this->m_data.erase(provider); this->m_data.erase(provider);
}); });