fix: Crash when closing providers too quickly
This commit is contained in:
parent
5c9d0e29c2
commit
ea482ff0f5
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user