mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 05:59:10 +00:00
(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
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user