mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Make the TriggerVibrationvibration behave closer to real steam.
This commit is contained in:
parent
b3a5102a3c
commit
a24a9c266f
3 changed files with 108 additions and 4 deletions
|
|
@ -794,9 +794,14 @@ bool Steam_Client::BShutdownIfAllPipesClosed()
|
|||
{
|
||||
PRINT_DEBUG("BShutdownIfAllPipesClosed\n");
|
||||
if (!steam_pipes.size()) {
|
||||
if (background_keepalive.joinable()) {
|
||||
bool joinable = background_keepalive.joinable();
|
||||
if (joinable) {
|
||||
kill_background_thread = true;
|
||||
kill_background_thread_cv.notify_one();
|
||||
}
|
||||
|
||||
steam_controller->Shutdown();
|
||||
if (joinable) {
|
||||
background_keepalive.join();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue