Skip to content

Commit

Permalink
win-asio: clear thread on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
pkviet committed Apr 21, 2021
1 parent 4cbe635 commit 76149b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/asio-input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ class AudioCB : public juce::AudioIODeviceCallback {

~AudioCB()
{
if (_thread)
_thread->stopThread(200);
bfree(_name);
}

Expand Down

1 comment on commit 76149b0

@Andersama
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given _thread is currently just the global thread from the previous edits this needs to check if it's the global thread, and / or _thread needs to be its own unique thread per AudioCB

Please sign in to comment.