Skip to content

Commit abf1f19

Browse files
committed
Close sets the internal stream pointer to NULL
As recommended in https://lists.columbia.edu/pipermail/portaudio/2017-March/001076.html
1 parent 1c31c42 commit abf1f19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sounddevice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,6 +1286,7 @@ def close(self, ignore_errors=True):
12861286
12871287
"""
12881288
err = _lib.Pa_CloseStream(self._ptr)
1289+
self._ptr = _ffi.NULL
12891290
if not ignore_errors:
12901291
_check(err, 'Error closing stream')
12911292

0 commit comments

Comments
 (0)