mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Wait for work to be finished before shutting down
Stopping the timers isn't sufficient, also wait for in-flight work to be finished first. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
2fae39df3b
commit
63629195ba
1 changed files with 3 additions and 0 deletions
|
|
@ -693,6 +693,9 @@ void ScenarioEditor::OnClose(wxCloseEvent& event)
|
|||
|
||||
m_Timer.Stop();
|
||||
m_RenderTimer.Stop();
|
||||
// Wait for in-flight work to finish.
|
||||
qPing qry;
|
||||
qry.Post();
|
||||
|
||||
m_ToolManager.SetCurrentTool(_T(""));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue