Fix a crash when network is slow.
This commit is contained in:
parent
14f20e4165
commit
52b91d4863
1 changed files with 4 additions and 1 deletions
|
@ -672,7 +672,10 @@ QtLauncher::QtLauncher() :
|
||||||
|
|
||||||
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()
|
void QtLauncher::setSceneryPaths()
|
||||||
|
|
Loading…
Add table
Reference in a new issue