Make the TriggerVibrationvibration behave closer to real steam.

This commit is contained in:
Mr_Goldberg 2021-09-14 16:11:17 -04:00
parent b3a5102a3c
commit a24a9c266f
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
3 changed files with 108 additions and 4 deletions

View file

@ -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();
}