[FS9] Fix a crash (pure virtual call)

This commit is contained in:
Mat Sutcliffe
2021-11-25 22:11:57 +00:00
parent de98d2eb15
commit 390fd636b3

View File

@@ -169,6 +169,10 @@ namespace BlackSimPlugin
{
closeConnection();
SafeRelease(m_hostAddress);
// This needs to be disconnected before calling the base class destructor,
// otherwise the slot can be called after the derived class is destroyed.
disconnect(this, &CFs9Client::connectionComplete, this, &CFs9Client::handleConnectionCompleted);
}
void CFs9Client::sendTextMessage(const QString &textMessage)