summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2017-08-19 17:00:31 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2017-08-19 17:00:31 +0200
commitabf1f19839059453436738d8d2979d22772c101c (patch)
treec3dbee990f353f7e7eb5f6ae14c7d971ea361a92
parent1c31c421f7239ee6e5c7be91bc8e7dbb66d32e74 (diff)
Close sets the internal stream pointer to NULL
As recommended in https://lists.columbia.edu/pipermail/portaudio/2017-March/001076.html
-rw-r--r--sounddevice.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sounddevice.py b/sounddevice.py
index 8695ce2..1f515f7 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -1286,6 +1286,7 @@ class _StreamBase(object):
"""
err = _lib.Pa_CloseStream(self._ptr)
+ self._ptr = _ffi.NULL
if not ignore_errors:
_check(err, 'Error closing stream')