SL-17124 make sure window thread wakes up to proces 'quit' message

meow-7.2.2
Andrey Kleshchev 2022-04-29 22:13:16 +03:00
parent 904b16a0a7
commit da6f4204b7
1 changed files with 4 additions and 0 deletions

View File

@ -907,6 +907,10 @@ void LLWindowWin32::close()
}
});
// Window thread might be waiting for a getMessage(), give it
// a push to enshure it will process destroy_window_handler
kickWindowThread();
// Even though the above lambda might not yet have run, we've already
// bound mWindowHandle into it by value, which should suffice for the
// operations we're asking. That's the last time WE should touch it.