1
0
Fork 0

Fix a crash when network is slow.

This commit is contained in:
James Turner 2016-09-14 13:59:20 +02:00
parent 14f20e4165
commit 52b91d4863

View file

@ -672,7 +672,10 @@ QtLauncher::QtLauncher() :
QtLauncher::~QtLauncher()
{
// if we don't cancel this now, it may complete after we are gone,
// causing a crash when the SGCallback fires (SGCallbacks don't clean up
// when their subject is deleted)
globals->get_subsystem<FGHTTPClient>()->client()->cancelRequest(m_mpServerRequest);
}
void QtLauncher::setSceneryPaths()