summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')