Stop race event manager if exiting lobby

This commit is contained in:
Benau
2018-04-18 13:41:21 +08:00
parent 9a32bdcbe1
commit b6caf00bfc
3 changed files with 18 additions and 21 deletions

View File

@@ -42,6 +42,8 @@ LobbyProtocol::LobbyProtocol(CallbackObject* callback_object)
// ----------------------------------------------------------------------------
LobbyProtocol::~LobbyProtocol()
{
if (RaceEventManager::getInstance())
RaceEventManager::getInstance()->stop();
delete m_game_setup;
} // ~LobbyProtocol