Skip to content

Commit

Permalink
Fix deadlock inside BASS library finalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Sep 30, 2024
1 parent b355f9a commit 0e3bebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cleo_plugins/Audio/CSoundSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "CLEO_Utils.h"
#include "CAEAudioHardware.h"
#include "CCamera.h"
#include <thread>

namespace CLEO
{
Expand Down Expand Up @@ -52,7 +53,7 @@ namespace CLEO
if (initialized)
{
TRACE("Freeing BASS library");
BASS_Free();
std::thread(BASS_Free);
initialized = false;
}
TRACE("SoundSystem finalized");
Expand Down

0 comments on commit 0e3bebc

Please sign in to comment.