mirror of https://github.com/OpenTTD/OpenTTD
(svn r22371) -Fix [FS#4596]: make sure saving has completely and utterly finished before starting a new one. Otherwise you could start a save, which would be marked as done by the previous save stopping and then yet another save could be started... and that could create a deadlock
parent
ce91f6b45e
commit
75b87c554f
|
@ -2420,6 +2420,9 @@ void WaitTillSaved()
|
||||||
_save_thread->Join();
|
_save_thread->Join();
|
||||||
delete _save_thread;
|
delete _save_thread;
|
||||||
_save_thread = NULL;
|
_save_thread = NULL;
|
||||||
|
|
||||||
|
/* Make sure every other state is handled properly as well. */
|
||||||
|
ProcessAsyncSaveFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue