Fixed crash when events were (un)subscribed while events were processing

This commit is contained in:
2015-10-02 18:12:00 +02:00
parent 45f1d882ad
commit e74f1092c7
3 changed files with 59 additions and 18 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ struct EventFixture
EventFixture()
{
this->EventBroker = new dd::EventBroker();
m_EEventType = decltype(m_EEventType)(std::bind(&OnEvent, this, std::placeholders::_1));
m_EEventType = decltype(m_EEventType)(std::bind(&EventFixture::OnEvent, this, std::placeholders::_1));
this->EventBroker->Subscribe(m_EEventType);
Run();
Check();