Skip to content

Commit

Permalink
if stream is already null, don't try to close it
Browse files Browse the repository at this point in the history
  • Loading branch information
benswift committed Apr 20, 2020
1 parent 382048b commit 0361f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AudioDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ AudioDevice::AudioDevice(): m_started(false), buffer(0), m_dsp_closure(nullptr),

AudioDevice::~AudioDevice()
{
if (!UNIV::AUDIO_NONE) {
if (stream && !UNIV::AUDIO_NONE) {
PaError err;
err = Pa_StopStream(stream);
if (err != paNoError) {
Expand Down

0 comments on commit 0361f22

Please sign in to comment.